summaryrefslogtreecommitdiffstats
path: root/openbsd/14.0.0/trinity.port.mk
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-09-29 13:37:37 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-09-29 13:37:37 +0200
commitb4b507c636506960fb306de332ec30be399758dc (patch)
treeffb4ce999cd5efe03a7cfee6c48a0cba49ba97af /openbsd/14.0.0/trinity.port.mk
parentf9a697dd364d6be35ec52794e97bca3187a06777 (diff)
parent1baab4923d9eec2ce99b1434d00c6d64a874f119 (diff)
downloadtde-packaging-b4b507c636506960fb306de332ec30be399758dc.tar.gz
tde-packaging-b4b507c636506960fb306de332ec30be399758dc.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'openbsd/14.0.0/trinity.port.mk')
-rw-r--r--openbsd/14.0.0/trinity.port.mk79
1 files changed, 79 insertions, 0 deletions
diff --git a/openbsd/14.0.0/trinity.port.mk b/openbsd/14.0.0/trinity.port.mk
new file mode 100644
index 000000000..ffd076b9f
--- /dev/null
+++ b/openbsd/14.0.0/trinity.port.mk
@@ -0,0 +1,79 @@
+### General information
+
+TDE_VERSION= 14.0.0
+TDE_PREFIX= /opt/trinity
+
+HOMEPAGE= http://www.trinitydesktop.org/
+MAINTAINER= François Andriot <francois.andriot@free.fr>
+
+PERMIT_PACKAGE_CDROM= Yes
+PERMIT_PACKAGE_FTP= Yes
+
+FLAVORS=debug
+FLAVOR?=
+
+### General build options
+
+PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
+
+BUILD_DEPENDS= devel/gmake \
+ devel/cmake \
+ textproc/gsed \
+ shells/bash
+
+### CMAKE related build options
+
+CMAKE_INCLUDE_PATH=/usr/include:/usr/local/include:/usr/X11R6/include
+CMAKE_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/X11R6/lib
+
+# Build Flags
+TDE_FLAGS=${CXXFLAGS} \
+ -I${WRKDIST}/libltdl -I/usr/X11R6/include -I/usr/local/include \
+ -L/usr/X11R6/lib -L/usr/local/lib \
+ -Wl,-lc
+
+.if ${FLAVOR:Mdebug}
+CMAKE_BUILD_TYPE=Debug
+TDE_FLAGS+= -g
+.else
+CMAKE_BUILD_TYPE=RelWithDebInfo
+TDE_FLAGS+= -DNDEBUG
+.endif
+
+# Custom configure commands
+TDE_CMAKE_CONFIGURE=\
+ 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}" \
+ -DCMAKE_CXX_FLAGS="${TDE_FLAGS} -Wl,-lstdc++" \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_INSTALL_RPATH="${TDE_PREFIX}/lib" \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_EXTRA_INCLUDE_FILES="pthread.h" \
+ \
+ -DTDEDIR="${TDE_PREFIX}" \
+ -DCMAKE_INSTALL_PREFIX="${TDE_PREFIX}" \
+ -DBIN_INSTALL_DIR="${TDE_PREFIX}/bin" \
+ -DSHARE_INSTALL_PREFIX="${TDE_PREFIX}/share" \
+ -DDOC_INSTALL_DIR="${TDE_PREFIX}/share/doc" \
+ -DINCLUDE_INSTALL_DIR="${TDE_PREFIX}/include/tde" \
+ -DLIB_INSTALL_DIR="${TDE_PREFIX}/lib" \
+ -DPLUGIN_INSTALL_DIR="${TDE_PREFIX}/lib/trinity" \
+ -DPKGCONFIG_INSTALL_DIR="${TDE_PREFIX}/lib/pkgconfig"
+
+
+### Custom build targets
+tde-cmake-rmbuild:
+ rm -rf "${WRKDIST}/build"
+
+tde-cmake-build:
+ export TDEDIR="${TDE_PREFIX}"; \
+ cd "${WRKDIST}/build" && gmake ${MAKE_FLAGS} || gmake
+
+tde-cmake-install:
+ export TDEDIR="${TDE_PREFIX}"; \
+ cd "${WRKDIST}/build" && gmake install