- Update MASTER_SITES and WWW: line

- Add LICENSE
- Add MAKE_JOBS_SAFE

PR:		160118
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2011-08-26 04:05:38 +00:00
parent b96c3bba39
commit d24d4d2dda
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280460
2 changed files with 27 additions and 19 deletions

View File

@ -9,40 +9,48 @@ PORTNAME= libgfx
DISTVERSION= 1.1.0
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ CENKES
MASTER_SITES= http://mgarland.org/files/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL/FLTK development
LICENSE= MIT
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
tiff.4:${PORTSDIR}/graphics/tiff \
png.6:${PORTSDIR}/graphics/png \
gzstream.0:${PORTSDIR}/devel/gzstream \
jpeg.11:${PORTSDIR}/graphics/jpeg
USE_GL= gl
USE_GMAKE= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-gzstream --with-libtiff-lzw --with-x
CFLAGS= -I${LOCALBASE}/include -fPIC
LDFLAGS= -L${LOCALBASE}/lib
BUILD_WRKSRC= ${WRKSRC}/src
USE_GL= glu
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-gzstream --with-libtiff-lzw --with-x
ALL_TARGET= ${PORTNAME}.so
MAKE_ARGS= CC="${CC}" CXX="${CXX}"
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
CFLAGS+= -fPIC
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e '/^CC /d;/^CXX /d' ${WRKSRC}/gfx-config.in
@${REINPLACE_CMD} -e 's|\.a|.so|g;/RANLIB/d;s|[(]AR[)] cru|{CC} \
${CFLAGS} ${LDFLAGS} -shared $${GUI_LIBS} -lgzstream -o|'\
${WRKSRC}/src/${MAKEFILE}
@${REINPLACE_CMD} -e '6115s|-lfltk|`fltk-config --ldflags`|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/^CC /d ; \
/^CXX /d' ${WRKSRC}/gfx-config.in
@${REINPLACE_CMD} -e \
's|\.a|.so|g ; \
/RANLIB/d ; \
s|[(]AR[)] cru|{CC} ${CFLAGS} ${LDFLAGS} -shared $${GUI_LIBS} -lgzstream -o|' ${WRKSRC}/src/${MAKEFILE}
@${REINPLACE_CMD} -e \
'/^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/
@(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
.include <bsd.port.mk>

View File

@ -6,4 +6,4 @@ to provide facilities which are useful in the majority of graphics programs.
This release introduces some (relatively small) incompatible changes with
1.0.x versions of the library. Details on changes can be found below.
WWW: http://graphics.cs.uiuc.edu/~garland/software/libgfx.html
WWW: http://mgarland.org/software/libgfx.html