Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2013 17:43:05 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337434 - head/graphics/qslim
Message-ID:  <201312251743.rBPHh533032430@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Dec 25 17:43:05 2013
New Revision: 337434
URL: http://svnweb.freebsd.org/changeset/ports/337434

Log:
  - Fix build on -current
  - Convert LIB_DEPENDS to new format
  - Support staging
  
  PR:		ports/184241
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/graphics/qslim/Makefile

Modified: head/graphics/qslim/Makefile
==============================================================================
--- head/graphics/qslim/Makefile	Wed Dec 25 17:42:54 2013	(r337433)
+++ head/graphics/qslim/Makefile	Wed Dec 25 17:43:05 2013	(r337434)
@@ -9,31 +9,32 @@ MASTER_SITES=	http://mgarland.org/files/
 		CENKES
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	SlimKit Surface Modeling Tools
+COMMENT=	SlimKit surface modeling tools
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
-		tiff.4:${PORTSDIR}/graphics/tiff \
-		gfx.0:${PORTSDIR}/graphics/libgfx \
-		forms.2:${PORTSDIR}/x11-toolkits/xforms
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png \
+		libtiff.so:${PORTSDIR}/graphics/tiff \
+		libgfx.so:${PORTSDIR}/graphics/libgfx \
+		libforms.so:${PORTSDIR}/x11-toolkits/xforms
 
 CONFIGURE_WRKSRC=	${WRKSRC}/mixkit
 BUILD_WRKSRC=		${WRKSRC}/mixkit/src
 
+USES=		gmake
 USE_GL=		glu
-USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-MAKE_ENV=	FLTKCONFIG="${LOCALBASE}/bin/fltk-config"
+MAKE_ENV=	FLTKCONFIG="${FLTK_CONFIG}" GUI_LIBS="${GUI_LIBS}"
 MAKE_ARGS=	CC="${CC}" CXX="${CXX}"
 ALL_TARGET=	# none
 USE_LDCONFIG=	yes
 
-CFLAGS+=	-DMIX_ANSI_IOSTREAMS -fpermissive -fPIC ${CPPFLAGS}
-CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_BOOL
-LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CFLAGS+=	-DMIX_ANSI_IOSTREAMS -DHAVE_BOOL -fPIC -I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+FLTK_CONFIG=	${LOCALBASE}/bin/fltk-config
+GUI_LIBS=	$$(${FLTK_CONFIG} --use-gl --ldflags)
 
-NO_STAGE=	yes
 post-extract:
 	@${RM} -rf ${WRKSRC}/libgfx/
 
@@ -42,21 +43,26 @@ post-patch:
 	@${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
+.for i in mixkit/src/Makefile tools/qslim/Makefile
+	@${ECHO_CMD} '.SUFFIXES: .fl .c .cc .cxx .o' >> ${WRKSRC}/${i}
+	@${ECHO_CMD} '.cxx.o:' >> ${WRKSRC}/${i}
+	@${ECHO_CMD} '	$$(CXX) -c $$(CXXFLAGS) $$<' >> ${WRKSRC}/${i}
+.endfor
 
 post-build:
 	@(cd ${BUILD_WRKSRC}/../../tools/qslim && ${SETENV} ${MAKE_ENV} \
-	${GMAKE} ${MAKE_ARGS} ${ALL_TARGET})
+		${MAKE_CMD} ${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/
+.for i in qslim qvis
+	(cd ${WRKSRC}/tools/qslim && ${INSTALL_PROGRAM} ${i} \
+		${STAGEDIR}${PREFIX}/bin)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/mixkit
+	(cd ${WRKSRC}/mixkit/src && ${INSTALL_DATA} *.h \
+		${STAGEDIR}${PREFIX}/include/mixkit)
+	(cd ${WRKSRC}/mixkit/src && ${INSTALL_PROGRAM} libmix.so \
+		${STAGEDIR}${PREFIX}/lib)
+	@${LN} -sf libmix.so ${STAGEDIR}${PREFIX}/lib/libmix.so.0
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312251743.rBPHh533032430>