2006-08-28 17:32:33 +02:00
|
|
|
# New ports collection makefile for: libgfx
|
|
|
|
# Date created: 28 August 2006
|
|
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libgfx
|
|
|
|
DISTVERSION= 1.1.0
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 6
|
2006-08-28 17:32:33 +02:00
|
|
|
CATEGORIES= graphics
|
2011-08-26 06:05:38 +02:00
|
|
|
MASTER_SITES= http://mgarland.org/files/dist/
|
2006-08-28 17:32:33 +02:00
|
|
|
|
2008-09-07 02:19:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-08-28 17:38:18 +02:00
|
|
|
COMMENT= OpenGL/FLTK development
|
2006-08-28 17:32:33 +02:00
|
|
|
|
2011-08-26 06:05:38 +02:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2006-08-28 17:32:33 +02:00
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2010-03-28 08:47:48 +02:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2008-05-03 09:45:22 +02:00
|
|
|
gzstream.0:${PORTSDIR}/devel/gzstream \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg
|
2006-08-28 17:32:33 +02:00
|
|
|
|
2011-08-26 06:05:38 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
|
|
|
|
USE_GL= glu
|
2006-08-28 17:32:33 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-gzstream --with-libtiff-lzw --with-x
|
2008-05-03 09:45:22 +02:00
|
|
|
ALL_TARGET= ${PORTNAME}.so
|
2011-08-26 06:05:38 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
|
|
|
CFLAGS+= -fPIC
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-05-03 09:45:22 +02:00
|
|
|
|
|
|
|
post-patch:
|
2011-08-26 06:05:38 +02:00
|
|
|
@${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
|
2006-08-28 17:32:33 +02:00
|
|
|
|
|
|
|
do-install:
|
2011-08-26 06:05:38 +02:00
|
|
|
@(cd ${WRKSRC}/include/gfx && ${COPYTREE_SHARE} . ${PREFIX}/include/gfx)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}.so ${PREFIX}/lib
|
2008-05-03 09:45:22 +02:00
|
|
|
@${LN} -sf ${PORTNAME}.so ${PREFIX}/lib/${PORTNAME}.so.0
|
2006-08-28 17:32:33 +02:00
|
|
|
|
2007-04-18 10:01:25 +02:00
|
|
|
.include <bsd.port.mk>
|