diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-10-19 18:03:29 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-10-19 18:03:29 +0200 |
commit | 5d46a95df7e3b2a7e988cd053e9b5e1c71464aea (patch) | |
tree | 3d56c5a9e03d6c9d82a4f6b4ef89e1f7b745f0e0 /openbsd/14.0.0/trinity.port.mk | |
parent | 17d122660014b7322c89ce54fa7ec97a602be6e7 (diff) | |
download | tde-packaging-5d46a95df7e3b2a7e988cd053e9b5e1c71464aea.tar.gz tde-packaging-5d46a95df7e3b2a7e988cd053e9b5e1c71464aea.zip |
OpenBSD: update R14 packages
Diffstat (limited to 'openbsd/14.0.0/trinity.port.mk')
-rw-r--r-- | openbsd/14.0.0/trinity.port.mk | 55 |
1 files changed, 44 insertions, 11 deletions
diff --git a/openbsd/14.0.0/trinity.port.mk b/openbsd/14.0.0/trinity.port.mk index c8164f7f8..8749a2174 100644 --- a/openbsd/14.0.0/trinity.port.mk +++ b/openbsd/14.0.0/trinity.port.mk @@ -41,11 +41,17 @@ TDE_FLAGS+= -DNDEBUG .endif # Custom configure commands +TDE_BUILD_ENV=\ + export TDEDIR="${TDE_PREFIX}"; \ + export PATH="${TDE_PREFIX}/bin:${PATH}"; \ + export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"; \ + export CFLAGS="${TDE_FLAGS}"; \ + export CXXFLAGS="${TDE_FLAGS} -Wl,-lstdc++"; + TDE_CMAKE_CONFIGURE=\ + ${TDE_BUILD_ENV} \ export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}"; \ export CMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}"; \ - export PATH="${TDE_PREFIX}/bin:${PATH}"; \ - export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"; \ cd ${WRKDIST} && mkdir build && cd build && cmake .. \ -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \ -DCMAKE_C_FLAGS="${TDE_FLAGS}" \ @@ -66,23 +72,50 @@ TDE_CMAKE_CONFIGURE=\ -DPKGCONFIG_INSTALL_DIR="${TDE_PREFIX}/lib/pkgconfig" TDE_AUTOTOOLS_CONFIGURE=\ - export PATH="${TDE_PREFIX}/bin:${PATH}"; \ - export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"; \ - export CFLAGS="${TDE_FLAGS}" \ - export CXXFLAGS="${TDE_FLAGS} -Wl,-lstdc++" \ + ${TDE_BUILD_ENV} \ cd ${WRKDIST} && ./configure \ - --prefix=${TDE_PREFIX} - + --prefix=${TDE_PREFIX} \ + --exec-prefix=${TDE_PREFIX} \ + --bindir=${TDE_PREFIX}/bin \ + --libdir=${TDE_PREFIX}/lib \ + --includedir=${TDE_PREFIX}/include \ + --datadir=${TDE_PREFIX}/share \ + \ + --enable-shared \ + --disable-static \ + --disable-dependency-tracking \ + --disable-debug \ + --enable-final \ + --enable-new-ldflags \ + --enable-closure \ + --enable-rpath \ + --disable-gcc-hidden-visibility \ + -### Custom build targets +### Custom build targets for CMAKE tde-cmake-rmbuild: rm -rf "${WRKDIST}/build" tde-cmake-build: - export TDEDIR="${TDE_PREFIX}"; \ + ${TDE_BUILD_ENV} \ cd "${WRKDIST}/build" && gmake ${MAKE_FLAGS} || gmake tde-cmake-install: - export TDEDIR="${TDE_PREFIX}"; \ + ${TDE_BUILD_ENV} \ cd "${WRKDIST}/build" && gmake install + +### Custom build targets for AUTOTOOLS +tde-autotools-prepare: + cp -f "/usr/local/share/aclocal/libtool.m4" "${WRKDIST}/admin/libtool.m4.in" + cp "/usr/local/share/libtool/config/ltmain.sh" "${WRKDIST}/admin/ltmain.sh" + gsed -i "${WRKDIST}/admin/acinclude.m4.in" -e "s|/usr/include/tqt|${LOCALBASE}/include/tqt|g" + cd "${WRKDIST}" && gmake -f "admin/Makefile.common" + +tde-autotools-build: + ${TDE_BUILD_ENV} \ + cd "${WRKDIST}" && gmake ${MAKE_FLAGS} || gmake + +tde-autotools-install: + ${TDE_BUILD_ENV} \ + cd "${WRKDIST}" && gmake install |