summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2013-10-09 10:08:19 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2013-10-09 10:08:19 +0000
commit42ec77e2f1f8576f45dbd47b1c988bf5106cb0e5 (patch)
tree8e0d5b26e7d65868e20d7e28211d09eea7e0d5a9 /graphics
parent- Convert to USES= qmake (diff)
- Set DESTDIRNAME, allow staging
- Use options helpers - Use new LIB_DEPENDS syntax - Remove post-configure patching: CC, etc are now respected via QMAKESPEC
Notes
Notes: svn path=/head/; revision=329881
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fraqtive/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/graphics/fraqtive/Makefile b/graphics/fraqtive/Makefile
index c7dec57eda7d..7f60304d8fd7 100644
--- a/graphics/fraqtive/Makefile
+++ b/graphics/fraqtive/Makefile
@@ -17,27 +17,15 @@ HAS_CONFIGURE= yes
CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}" \
QMAKE_CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= -prefix ${PREFIX} -qmake ${QMAKE}
+DESTDIRNAME= INSTALL_ROOT
OPTIONS_DEFINE= SSE2
SSE2_DESC= Enable SSE2 optimization
+SSE2_CONFIGURE_OFF= -no-sse2
STRIP_FILES= bin/fraqtive
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if !${PORT_OPTIONS:MSSE2}
-CONFIGURE_ARGS+=-no-sse2
-.endif
-
-post-configure:
- @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
- -e 's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|' \
- -e 's|^LINK .*|LINK=${CXX}|' \
- -e 's|^CFLAGS .*|CFLAGS=${CFLAGS} -Wall -W $$\(DEFINES\)|' \
- -e 's|^CXXFLAGS .*|CXXFLAGS=${CXXFLAGS} -Wall -W $$\(DEFINES\)|'
-
post-install:
- ${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
+ ${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
.include <bsd.port.mk>