From da6ef5ae3c8c160e3c81efaedc0632bd6e9820fc Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 19 Sep 2009 20:31:49 +0000 Subject: [PATCH] 2009-09-19 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * INSTALL + Added new section: HOW TO CREATE DISTRIBUTABLE PACKAGES * bin/postinst.sh % Deleted -KPIC from dynlib command with sunpro. --- harbour/ChangeLog | 7 ++++++ harbour/INSTALL | 50 +++++++++++++++++++++++++++++++++++++++++ harbour/bin/postinst.sh | 7 +----- 3 files changed, 58 insertions(+), 6 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index abceb25492..990991ded8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-19 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * INSTALL + + Added new section: HOW TO CREATE DISTRIBUTABLE PACKAGES + + * bin/postinst.sh + % Deleted -KPIC from dynlib command with sunpro. + 2009-09-19 21:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * bin/postinst.sh * config/global.mk diff --git a/harbour/INSTALL b/harbour/INSTALL index f8c2450294..71ff45eae4 100644 --- a/harbour/INSTALL +++ b/harbour/INSTALL @@ -182,6 +182,56 @@ HOW TO DO A PARTIAL [RE]BUILD [clean] [install] +HOW TO CREATE DISTRIBUTABLE PACKAGES +==================================== + + Source .tgz on *nixes + --------------------- + + $ ./mpkg_src.sh + + Binary .tgz on *nixes + --------------------- + + $ ./mpkg_tgz.sh + + Binary .deb on Linux + -------------------- + + $ fakeroot debian/rules + + .rpm on Linux + ------------- + + for native build: + $ ./mpkg_rpm.sh + for Windows cross-build: + $ ./mpkg_rpm_win.sh + for Windows CE cross-build: + $ ./mpkg_rpm_wce.sh + + Binzary .zip + .exe on Windows for all targets (except Linux) + ------------------------------------------------------------- + + > set HB_DIR_NSIS=%ProgramFiles%\NSIS\ + > set HB_DIR_ZIP=C:\info-zip\ + > set HB_BUILD_PKG=yes + (then run build as usual, see: HOW TO BUILD AND INSTALL HARBOUR FROM SOURCE) + + Binary .zip on MS-DOS for all targets (except Linux) + ---------------------------------------------------- + + > set HB_DIR_ZIP=C:\info-zip\ + > set HB_BUILD_PKG=yes + (then run build as usual, see: HOW TO BUILD AND INSTALL HARBOUR FROM SOURCE) + + Unified .7z + .exe installer for Windows + ---------------------------------------- + + [ To be completed. All required files and scripts reside in package/winuni. + This is a semi-manual process yet. ] + + HOW TO ENABLE OPTIONAL COMPONENTS BEFORE BUILD ============================================== diff --git a/harbour/bin/postinst.sh b/harbour/bin/postinst.sh index 07691d3a4f..ed94e60926 100755 --- a/harbour/bin/postinst.sh +++ b/harbour/bin/postinst.sh @@ -76,12 +76,7 @@ then elif [ "$HB_COMPILER" = "sunpro" ]; then hb_mkdyn="${HB_BIN_INSTALL}/hb-mkdyn" rm -f "${hb_mkdyn}" - if [ "$HB_PLATFORM" = "sunos" ] && \ - (isalist|grep sparc) &>/dev/null; then - lnopt="-xcode=pic32" - else - lnopt="-KPIC" - fi + lnopt="" [ "$HB_BUILD_OPTIM" = "no" ] || lnopt="-fast -xnolibmopt $lnopt" sed -e "s/gcc -shared/suncc -G ${lnopt} ${HB_ISAOPT}/g" \ "${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \