2002-01-06 15:22:32 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: qslim
|
|
|
|
# Date created: Jan 6, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qslim
|
2008-04-19 22:21:34 +00:00
|
|
|
PORTVERSION= 2.1
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 4
|
2002-01-06 15:22:32 +00:00
|
|
|
CATEGORIES= graphics
|
2008-05-03 07:45:22 +00:00
|
|
|
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ CENKES
|
2002-01-06 15:22:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= SlimKit Surface Modeling Tools
|
2002-01-06 15:22:32 +00:00
|
|
|
|
2010-03-28 06:47:48 +00:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
2002-09-20 07:10:09 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2008-05-03 07:45:22 +00:00
|
|
|
gfx.0:${PORTSDIR}/graphics/libgfx \
|
- 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
|
|
|
forms.1:${PORTSDIR}/x11-toolkits/xforms
|
2002-01-06 15:22:32 +00:00
|
|
|
|
2008-05-03 07:45:22 +00:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/mixkit
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/mixkit/src
|
2002-09-20 07:10:09 +00:00
|
|
|
|
2002-01-06 15:22:32 +00:00
|
|
|
USE_GMAKE= yes
|
2002-09-20 07:10:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-04-19 22:21:34 +00:00
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_GL= glu
|
2008-05-03 07:45:22 +00:00
|
|
|
USE_LDCONFIG= yes
|
2002-09-20 07:10:09 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
ALL_TARGET= # none
|
|
|
|
|
2008-05-03 07:45:22 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_BOOL
|
- 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 ${PTHREAD_LIBS}
|
2002-09-20 07:10:09 +00:00
|
|
|
|
2008-05-03 07:45:22 +00:00
|
|
|
CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive -fPIC ${CPPFLAGS}
|
|
|
|
MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
|
|
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}" FLTKCONFIG="${LOCALBASE}/bin/fltk-config"
|
2003-10-28 22:00:13 +00:00
|
|
|
|
2008-05-03 07:45:22 +00:00
|
|
|
post-extract:
|
|
|
|
@${RM} -rf ${WRKSRC}/libgfx/
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/gfx-config/d' ${CONFIGURE_WRKSRC}/mix-config.in
|
|
|
|
@${REINPLACE_CMD} -e 's/\.\..*mix\.a//' ${WRKSRC}/tools/qslim/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/gfx-config/d;s/\.a/.so/g;s/[(]AR[)] cru/(CXX) \
|
|
|
|
$$(CXXFLAGS) -shared -o/;/RANLIB/d' ${BUILD_WRKSRC}/${MAKEFILE}
|
|
|
|
@for f in ${BUILD_WRKSRC}/Makefile ${WRKSRC}/tools/qslim/Makefile;do\
|
|
|
|
${ECHO_CMD} '.SUFFIXES: .fl .c .cc .cxx .o' >> $$f;\
|
|
|
|
${ECHO_CMD} '.cxx.o:' >> $$f;\
|
|
|
|
${ECHO_CMD} ' $$(CXX) -c $$(CXXFLAGS) $$<' >> $$f;done
|
2002-05-17 13:06:41 +00:00
|
|
|
|
2002-01-06 15:22:32 +00:00
|
|
|
post-build:
|
2008-04-19 22:21:34 +00:00
|
|
|
@(cd ${BUILD_WRKSRC}/../../tools/qslim && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${GMAKE} ${MAKE_ARGS} ${ALL_TARGET})
|
2002-01-06 15:22:32 +00:00
|
|
|
|
|
|
|
do-install:
|
2008-05-03 07:45:22 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mixkit/src/libmix.so ${PREFIX}/lib/
|
|
|
|
@${LN} -sf libmix.so ${PREFIX}/lib/libmix.so.0
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qslim ${PREFIX}/bin/
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qvis ${PREFIX}/bin/
|
|
|
|
@${INSTALL} -d ${PREFIX}/include/mixkit/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mixkit/src/*.h ${PREFIX}/include/mixkit/
|
2002-01-06 15:22:32 +00:00
|
|
|
|
2003-11-03 19:26:41 +00:00
|
|
|
.include <bsd.port.mk>
|