2006-08-28 15:32:33 +00: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
|
2009-07-18 11:11:29 +00:00
|
|
|
PORTREVISION= 3
|
2006-08-28 15:32:33 +00:00
|
|
|
CATEGORIES= graphics
|
2007-04-18 08:01:25 +00:00
|
|
|
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ CENKES
|
2006-08-28 15:32:33 +00:00
|
|
|
|
2008-09-07 00:19:05 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-08-28 15:38:18 +00:00
|
|
|
COMMENT= OpenGL/FLTK development
|
2006-08-28 15:32:33 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2008-05-03 07:45:22 +00:00
|
|
|
gzstream.0:${PORTSDIR}/devel/gzstream \
|
2009-07-18 11:11:29 +00:00
|
|
|
jpeg.10:${PORTSDIR}/graphics/jpeg
|
2006-08-28 15:32:33 +00:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_GL= gl
|
2006-08-28 15:32:33 +00:00
|
|
|
USE_GMAKE= yes
|
2008-05-03 07:45:22 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-08-28 15:32:33 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --enable-gzstream --with-libtiff-lzw --with-x
|
2008-05-02 19:07:12 +00:00
|
|
|
CFLAGS= -I${LOCALBASE}/include -fPIC
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2006-08-28 15:32:33 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2008-05-03 07:45:22 +00:00
|
|
|
ALL_TARGET= ${PORTNAME}.so
|
|
|
|
MAKE_ARGS= CC="${CC}" CXX="${CXX}"
|
|
|
|
|
|
|
|
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}
|
2006-08-28 15:32:33 +00:00
|
|
|
|
|
|
|
do-install:
|
2008-05-03 07:45:22 +00:00
|
|
|
@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
|
2006-08-28 15:32:33 +00:00
|
|
|
|
2007-04-18 08:01:25 +00:00
|
|
|
.include <bsd.port.mk>
|