diff options
author | marino <marino@FreeBSD.org> | 2015-03-26 07:00:50 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2015-03-26 07:00:50 +0800 |
commit | 0c8bec8d1565cd01e8fc1017de057d1986719d12 (patch) | |
tree | 2f9cd8c0a819b520aa1b353994707173199cca50 /games/glest | |
parent | 5db5908d4795f6a79fd122fbe80953bd1e2104c2 (diff) | |
download | freebsd-ports-gnome-0c8bec8d1565cd01e8fc1017de057d1986719d12.tar.gz freebsd-ports-gnome-0c8bec8d1565cd01e8fc1017de057d1986719d12.tar.zst freebsd-ports-gnome-0c8bec8d1565cd01e8fc1017de057d1986719d12.zip |
games category: Remove $PTHREAD_LIBS
approved by: PTHREAD blanket
Diffstat (limited to 'games/glest')
-rw-r--r-- | games/glest/Makefile | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/games/glest/Makefile b/games/glest/Makefile index 4d34d818664f..e241eeceacaf 100644 --- a/games/glest/Makefile +++ b/games/glest/Makefile @@ -48,30 +48,35 @@ pre-extract: @${MKDIR} ${WRKDIR}/${DISTNAME} post-patch: - @${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \ + @${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" \ + -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \ ${WRKSRC}/mk/linux/autogen.sh - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' -e \ - 's|PTHREAD_LIBS="-l[$$]flag"|PTHREAD_LIBS="${PTHREAD_LIBS}"|g' -e \ - 's|pthreads library -l[$$]flag|pthreads library ${PTHREAD_LIBS}|g' -e \ - 's|include/lua5.1|include/lua51|g' -e 's|-llua5.1|-llua-5.1|g' \ - ${WRKSRC}/mk/linux/configure.ac ${WRKSRC}/mk/linux/mk/autoconf/* - @${FIND} -E ${WRKDIR} -type f -name '*.bak' -o -name '*.orig' | ${XARGS} ${RM} + @${REINPLACE_CMD} \ + -e 's|PTHREAD_LIBS="-l[$$]flag"|PTHREAD_LIBS="-lpthread"|g' \ + -e 's|pthreads library -l[$$]flag|pthreads library -lpthread|g' \ + -e 's|include/lua5.1|include/lua51|g' \ + -e 's|-llua5.1|-llua-5.1|g' \ + ${WRKSRC}/mk/linux/configure.ac \ + ${WRKSRC}/mk/linux/mk/autoconf/* + @${FIND} -E ${WRKDIR} -type f -name '*.bak' -o -name '*.orig' | \ + ${XARGS} ${RM} pre-configure: - @cd ${WRKSRC}/mk/linux && ${SH} autogen.sh && \ + @(cd ${WRKSRC}/mk/linux && ${SH} autogen.sh && \ ${REINPLACE_CMD} -e 's|-llua5.1|-llua-5.1|g' -e 's|.lng||g' \ - ${WRKSRC}/${CONFIGURE_SCRIPT} ${WRKSRC}/mk/linux/glest.ini + ${WRKSRC}/${CONFIGURE_SCRIPT} ${WRKSRC}/mk/linux/glest.ini) do-build: - @cd ${WRKSRC} && ${JAM_CMD} + @(cd ${WRKSRC} && ${JAM_CMD}) do-install: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt ${STAGEDIR}${DOCSDIR}/code_license.txt - @${MKDIR} ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt \ + ${STAGEDIR}${DOCSDIR}/code_license.txt ${INSTALL_PROGRAM} ${WRKSRC}/glest ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/mk/linux/glest.ini ${STAGEDIR}${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .if ${PORT_OPTIONS:MEDITOR} ${INSTALL_PROGRAM} ${WRKSRC}/glest_editor ${STAGEDIR}${PREFIX}/bin/ |