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

Support stage

Modernize LIB_DEPENDS
USE_GMAKE -> USES=gmake
This commit is contained in:
Baptiste Daroussin 2014-01-25 21:18:33 +00:00
parent 80eab28172
commit 93e1da9549
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341107

View File

@ -12,16 +12,16 @@ COMMENT= OpenGL/FLTK development
LICENSE= MIT
LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk \
tiff:${PORTSDIR}/graphics/tiff \
png15:${PORTSDIR}/graphics/png \
gzstream:${PORTSDIR}/devel/gzstream \
jpeg:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk \
libtiff.so:${PORTSDIR}/graphics/tiff \
libpng15.so:${PORTSDIR}/graphics/png \
libgzstream.so:${PORTSDIR}/devel/gzstream \
libjpeg.so:${PORTSDIR}/graphics/jpeg
BUILD_WRKSRC= ${WRKSRC}/src
USES= gmake
USE_GL= glu
USE_GMAKE= yes
USE_XORG= x11 xext xft xinerama
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-gzstream --with-libtiff-lzw --with-x
@ -32,7 +32,6 @@ CFLAGS+= -fPIC
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e \
'/^CC /d ; \
@ -45,8 +44,8 @@ post-patch:
'/^FLTK_LIBS/s|"-lfltk"|"`fltk-config --ldflags`"|' ${WRKSRC}/configure
do-install:
@(cd ${WRKSRC}/include/gfx && ${COPYTREE_SHARE} . ${PREFIX}/include/gfx)
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}.so ${PREFIX}/lib
@${LN} -sf ${PORTNAME}.so ${PREFIX}/lib/${PORTNAME}.so.0
@(cd ${WRKSRC}/include/gfx && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/gfx)
${INSTALL_LIB} ${WRKSRC}/src/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
@${LN} -sf ${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so.0
.include <bsd.port.mk>