aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libboard
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2014-04-21 17:57:02 +0800
committerthierry <thierry@FreeBSD.org>2014-04-21 17:57:02 +0800
commit77f996984386fc4fd36fb7dc0ea44d8d2d7a05ed (patch)
tree5cf13db8b373baaa8e8151a4642bf31e5461fdf3 /graphics/libboard
parent6eadb45539c3406ecfe281c68b97c631751d8046 (diff)
downloadfreebsd-ports-gnome-77f996984386fc4fd36fb7dc0ea44d8d2d7a05ed.tar.gz
freebsd-ports-gnome-77f996984386fc4fd36fb7dc0ea44d8d2d7a05ed.tar.zst
freebsd-ports-gnome-77f996984386fc4fd36fb7dc0ea44d8d2d7a05ed.zip
Support staging- Support staging.
Diffstat (limited to 'graphics/libboard')
-rw-r--r--graphics/libboard/Makefile47
-rw-r--r--graphics/libboard/files/patch-configure13
2 files changed, 34 insertions, 26 deletions
diff --git a/graphics/libboard/Makefile b/graphics/libboard/Makefile
index d119bc68ed23..ab72ba68876e 100644
--- a/graphics/libboard/Makefile
+++ b/graphics/libboard/Makefile
@@ -1,31 +1,30 @@
# Created by: thierry@pompo.net
# $FreeBSD$
-PORTNAME= libboard
-DISTVERSION= 0.9.0
-PORTREVISION= 1
-CATEGORIES= graphics
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+PORTNAME= libboard
+DISTVERSION= 0.9.0
+PORTREVISION= 1
+CATEGORIES= graphics
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
-MAINTAINER= thierry@FreeBSD.org
-COMMENT= Vector graphics C++ library
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Vector graphics C++ library
-LICENSE= LGPL3
+LICENSE= LGPL3
-BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
+BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}
-CONFIGURE_ENV= CXX=${CXX}
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX}
+CONFIGURE_ENV= CXX=${CXX}
-USE_GMAKE= yes
-USE_LDCONFIG= yes
+USES= gmake
+USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/-.$//}
PORTDOCS= *
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} != i386
@@ -36,18 +35,18 @@ pre-configure:
${REINPLACE_CMD} -e 's|-O3|${CXXFLAGS}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
- ${MV} ${PREFIX}/lib/libboard.so ${PREFIX}/lib/libboard.so.0
- ${LN} -sf ${PREFIX}/lib/libboard.so.0 ${PREFIX}/lib/libboard.so
+ ${MV} ${STAGEDIR}${PREFIX}/lib/libboard.so ${STAGEDIR}${PREFIX}/lib/libboard.so.0
+ ${LN} -sf libboard.so.0 ${STAGEDIR}${PREFIX}/lib/libboard.so
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${DOCSDIR}/
- ${RM} -rf ${DOCSDIR}/.svn
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
+ ${RM} -rf ${STAGEDIR}${DOCSDIR}/.svn
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
- cd ${WRKSRC}/bin/ && ${COPYTREE_BIN} . ${EXAMPLESDIR}/
- ${RM} -rf ${EXAMPLESDIR}/.svn
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/
+ cd ${WRKSRC}/bin/ && ${COPYTREE_BIN} . ${STAGEDIR}${EXAMPLESDIR}/
+ ${RM} -rf ${STAGEDIR}${EXAMPLESDIR}/.svn
.endif
regression-test:
diff --git a/graphics/libboard/files/patch-configure b/graphics/libboard/files/patch-configure
index eb8cde7c01f9..760380601822 100644
--- a/graphics/libboard/files/patch-configure
+++ b/graphics/libboard/files/patch-configure
@@ -1,5 +1,5 @@
---- configure.orig 2012-05-26 19:06:25.069208812 +0600
-+++ configure 2012-05-26 19:08:46.373209460 +0600
+--- configure.orig 2010-07-16 09:07:39.000000000 +0200
++++ configure 2014-04-21 11:18:10.000000000 +0200
@@ -117,23 +117,6 @@
##
## Are we on a 64 bits arch
@@ -24,6 +24,15 @@
cat > Makefile <<EOF
+@@ -147,7 +130,7 @@
+ STATICLIB_NAME=\$(LIBNAME).\$(STATICLIB_EXTENSION)
+ DYNLIB=lib/\$(DYNLIB_NAME)
+ STATICLIB=lib/\$(STATICLIB_NAME)
+-PREFIX=$PREFIX
++PREFIX=\$(DESTDIR)$PREFIX
+ RM=rm -f
+ CP=cp
+ LD=\$(CXX)
@@ -220,10 +203,6 @@
chmod 755 \$(PREFIX)/include/board
chmod 644 \$(PREFIX)/include/Board.h