aboutsummaryrefslogtreecommitdiff
path: root/graphics/libgfx
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2008-05-03 07:45:22 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2008-05-03 07:45:22 +0000
commite654931d4b65b2addc585cff0c9bf658aa8e6a91 (patch)
tree9c4a76cad6e6d5e457f7e7302cf092506954ac8e /graphics/libgfx
parent8159d9f00b09f6f22fdcf76112d8991c924fee6d (diff)
- Convert gzstream, libgfx[1] and qslim to shlibs
- Unbundle libgfx from qslim - Chase the conversion in vis5d+ Suggested by: thierry [1]
Notes
Notes: svn path=/head/; revision=212518
Diffstat (limited to 'graphics/libgfx')
-rw-r--r--graphics/libgfx/Makefile19
-rw-r--r--graphics/libgfx/pkg-plist3
2 files changed, 16 insertions, 6 deletions
diff --git a/graphics/libgfx/Makefile b/graphics/libgfx/Makefile
index 7d8cf79d0998..5786c3047f9b 100644
--- a/graphics/libgfx/Makefile
+++ b/graphics/libgfx/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libgfx
DISTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ CENKES
@@ -17,21 +17,30 @@ COMMENT= OpenGL/FLTK development
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
tiff.4:${PORTSDIR}/graphics/tiff \
png.5:${PORTSDIR}/graphics/png \
+ gzstream.0:${PORTSDIR}/devel/gzstream \
jpeg.9:${PORTSDIR}/graphics/jpeg
-BUILD_DEPENDS= ${LOCALBASE}/lib/libgzstream.a:${PORTSDIR}/devel/gzstream
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
-ALL_TARGET= libgfx.a
+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}
do-install:
- @${CP} -R ${WRKSRC}/include/gfx ${PREFIX}/include/
- @${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.a ${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>
diff --git a/graphics/libgfx/pkg-plist b/graphics/libgfx/pkg-plist
index 1c7e9764bdf1..9519efdcbba5 100644
--- a/graphics/libgfx/pkg-plist
+++ b/graphics/libgfx/pkg-plist
@@ -30,6 +30,7 @@ include/gfx/vec4.h
include/gfx/win/gui-mfc.h
include/gfx/win/mfc.h
include/gfx/win/wintools.h
-lib/libgfx.a
+lib/libgfx.so
+lib/libgfx.so.0
@dirrm include/gfx/win
@dirrm include/gfx