1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/qslim/Makefile
Andrew Pantyukhin e654931d4b - Convert gzstream, libgfx[1] and qslim to shlibs
- Unbundle libgfx from qslim
- Chase the conversion in vis5d+

Suggested by:	thierry [1]
2008-05-03 07:45:22 +00:00

67 lines
2.0 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: qslim
# Date created: Jan 6, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= qslim
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ CENKES
MAINTAINER= ports@FreeBSD.org
COMMENT= SlimKit Surface Modeling Tools
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
gfx.0:${PORTSDIR}/graphics/libgfx \
forms.1:${PORTSDIR}/x11-toolkits/xforms
CONFIGURE_WRKSRC= ${WRKSRC}/mixkit
BUILD_WRKSRC= ${WRKSRC}/mixkit/src
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gnometarget
USE_GL= glu
USE_LDCONFIG= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= # none
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_BOOL
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive -fPIC ${CPPFLAGS}
MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
MAKE_ENV+= LDFLAGS="${LDFLAGS}" FLTKCONFIG="${LOCALBASE}/bin/fltk-config"
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
post-build:
@(cd ${BUILD_WRKSRC}/../../tools/qslim && ${SETENV} ${MAKE_ENV} \
${GMAKE} ${MAKE_ARGS} ${ALL_TARGET})
do-install:
@${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/
.include <bsd.port.mk>