diff options
Diffstat (limited to 'devel/crystal/Makefile')
-rw-r--r-- | devel/crystal/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/devel/crystal/Makefile b/devel/crystal/Makefile index 4f732b12d85d..aee3e315cdb6 100644 --- a/devel/crystal/Makefile +++ b/devel/crystal/Makefile @@ -18,17 +18,25 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ USE_BZIP2= yes USE_GMAKE= yes +USE_REINPLACE= yes USE_XLIB= yes WRKSRC= ${WRKDIR}/CS +.include <bsd.port.pre.mk> + +SUBR_PATCH= s|-O6|${PTHREAD_CFLAGS}|; s|/usr/local|${LOCALBASE}|; \ + s|-lGL|-lGL ${PTHREAD_LIBS}|g; s|-lpthread|${PTHREAD_LIBS}|g; \ + s|INSTALL_DIR = ${LOCALBASE}/crystal|INSTALL_DIR = ${PREFIX}/crystal|; \ + s|CFLAGS.GENERAL=-Wall|CFLAGS.GENERAL=$(CXXFLAGS) -O0| +.if ( ${OSVERSION} >= 500034 ) +SUBR_PATCH+= ; s|-malign|-falign|g +.endif + pre-build: cd ${WRKSRC}; ${GMAKE} freebsd pre-patch: - @${FIND} ${WRKSRC} -name "*.mak" | ${XARGS} ${PERL} -pi -e \ - 's|-O6|${PTHREAD_CFLAGS}|; s|/usr/local|${LOCALBASE}|; \ - s|-lGL|-lGL ${PTHREAD_LIBS}|g; s|-lpthread|${PTHREAD_LIBS}|g; \ - s|INSTALL_DIR = ${LOCALBASE}/crystal|INSTALL_DIR = ${PREFIX}/crystal|' + @${FIND} ${WRKSRC} -name "*.mak" | ${XARGS} ${REINPLACE_CMD} '${SUBR_PATCH}' -.include <bsd.port.mk> +.include <bsd.port.post.mk> |