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
|
|
|
|
PORTVERSION= 2.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/
|
|
|
|
|
|
|
|
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
|
|
|
|
2003-02-02 13:20:54 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2002-09-20 07:10:09 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
forms.1:${PORTSDIR}/x11-toolkits/xforms
|
2002-01-06 15:22:32 +00:00
|
|
|
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/mixkit/build
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/mixkit/src
|
2002-09-20 07:10:09 +00:00
|
|
|
|
|
|
|
USE_MESA= yes
|
|
|
|
USE_REINPLACE= yes
|
2002-01-06 15:22:32 +00:00
|
|
|
USE_GMAKE= yes
|
2002-09-20 07:10:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
ALL_TARGET= # none
|
|
|
|
|
2003-02-08 05:27:23 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
|
2002-09-20 07:10:09 +00:00
|
|
|
-I${X11BASE}/include/X11 ${PTHREAD_CFLAGS}
|
2003-02-08 05:27:23 +00:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
|
2002-09-20 07:10:09 +00:00
|
|
|
|
2002-12-29 05:16:06 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} > 500034
|
|
|
|
CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive
|
|
|
|
.endif
|
|
|
|
|
2003-02-02 13:20:54 +00:00
|
|
|
.if !exists(/usr/include/getopt.h)
|
|
|
|
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
|
|
|
LDFLAGS+= -lgnugetopt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
2002-09-20 07:10:09 +00:00
|
|
|
@${RM} -f ${WRKSRC}/mixkit/src/getopt.h
|
2002-01-06 15:22:32 +00:00
|
|
|
|
2002-05-17 13:06:41 +00:00
|
|
|
post-patch:
|
2002-09-20 07:10:09 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|\@XFORMS_LIBS\@|-lforms -lformsGL -lXpm|g' \
|
|
|
|
${CONFIGURE_WRKSRC}/mix-config.in
|
2002-05-17 13:06:41 +00:00
|
|
|
|
2002-01-06 15:22:32 +00:00
|
|
|
post-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}/../../tools/qslim ; ${GMAKE} all)
|
|
|
|
@(cd ${BUILD_WRKSRC}/../../tools/filters ; ${GMAKE} all)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mixkit/src/libmix.a ${PREFIX}/lib
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qslim ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qvis ${PREFIX}/bin
|
2002-01-06 16:34:32 +00:00
|
|
|
@${MKDIR} ${PREFIX}/include/mixkit
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mixkit/src/*.h ${PREFIX}/include/mixkit
|
2002-01-06 15:22:32 +00:00
|
|
|
|
2002-12-29 05:16:06 +00:00
|
|
|
.include <bsd.port.post.mk>
|