1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix build with clang

PR:		188137
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2014-05-21 05:40:08 +00:00
parent 5fe9bf27a7
commit 0fbe56ec2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354709
2 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= nekobee
PORTVERSION= 0.1.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= GH
@ -26,20 +26,21 @@ USE_GNOME= gtk20
CPPFLAGS+= -I${LOCALBASE}/include/dssi -I${LOCALBASE}/include
.if !defined(DISABLE_MAKE_JOBS)
MAKE_JOBS_ARGS= -j${MAKE_JOBS_NUMBER}
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/LINKFLAGS/s|^|#|' ${WRKSRC}/wscript
do-configure:
@${REINPLACE_CMD} '/LINKFLAGS/d' ${WRKSRC}/wscript
@(cd ${WRKSRC} && ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" \
LINKFLAGS="-lm" \
CPPFLAGS="${CPPFLAGS}" ./waf configure --prefix=${PREFIX})
CPPFLAGS="${CPPFLAGS}" LINKFLAGS="-lm" \
./waf configure --prefix=${PREFIX})
do-build:
@(cd ${WRKSRC} && ./waf build -vvv ${MAKE_JOBS_ARGS})
@(cd ${WRKSRC} && ./waf build -vvv -j${MAKE_JOBS_NUMBER})
do-install:
@(cd ${WRKSRC} && ./waf install --destdir=${STAGEDIR})
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dssi/nekobee.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dssi/nekobee/nekobee_gtk
.include <bsd.port.mk>

View File

@ -3,3 +3,4 @@ lib/dssi/nekobee/nekobee_gtk
lib/dssi/nekobee/switch.png
lib/dssi/nekobee.so
@dirrm lib/dssi/nekobee
@dirrmtry lib/dssi