aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/v/Makefile36
-rw-r--r--x11-toolkits/v/pkg-descr2
2 files changed, 24 insertions, 14 deletions
diff --git a/x11-toolkits/v/Makefile b/x11-toolkits/v/Makefile
index e65814f2a041..404ad75dc607 100644
--- a/x11-toolkits/v/Makefile
+++ b/x11-toolkits/v/Makefile
@@ -12,29 +12,37 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ GUI development framework for X11 and Microsoft Windows
-WRKSRC= ${WRKDIR}/home/vgui
-
-USE_XORG= x11 xt xmu xaw
USES= gmake
-MAKE_JOBS_UNSAFE= yes
+USE_XORG= x11 xt xmu xaw
MAKE_ENV= INSTALLDIR=${PREFIX} HOMEV=${WRKSRC}
USE_DOS2UNIX= yes
-.include <bsd.port.pre.mk>
+WRKSRC= ${WRKDIR}/home/vgui
-.if ${ARCH} == "alpha"
-BROKEN= compiler error in function fixup_memory_subreg
+OPTIONS_DEFINE= OPENGL # DOCS (commented out, see below)
+OPTIONS_DEFAULT= OPENGL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPENGL}
+USE_GL= glu
.endif
-# For gmake>=3.82
post-patch:
+# For gmake>=3.82
@${REINPLACE_CMD} -e 's/^ cd/# cd/' ${WRKSRC}/srcx/Makefile
+# Fix parallel builds: call make(1) correctly, register target dependencies
+ @${REINPLACE_CMD} -E 's/cd (.+) ; (\$$\(MAKE\))/\2 -C \1/' \
+ ${WRKSRC}/Makefile
+ @${ECHO_CMD} test appgen iconed draw bmp2vbm examp drawex icons \
+ tutor: srcx >> ${WRKSRC}/Makefile
do-configure:
${CP} ${WRKSRC}/configs/ConfigX.mk ${WRKSRC}/Config.mk
pre-build:
- ${MKDIR} ${WRKSRC}/obj/bsd ${WRKSRC}/objm/bsd ${WRKSRC}/lib/bsd ${WRKSRC}/bin/bsd
+ @${MKDIR} ${WRKSRC}/obj/bsd ${WRKSRC}/objm/bsd ${WRKSRC}/lib/bsd \
+ ${WRKSRC}/bin/bsd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/viconedx ${PREFIX}/bin
@@ -48,23 +56,25 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/vtestlibx ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lib/libVx.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/libVxgl.a ${PREFIX}/lib
- ${MKDIR} ${PREFIX}/include/v
+ @${MKDIR} ${PREFIX}/include/v
${INSTALL_DATA} ${WRKSRC}/includex/v/*.h ${PREFIX}/include/v
${INSTALL_DATA} ${WRKSRC}/includex/v/*.cxx ${PREFIX}/include/v
post-install:
${RANLIB} ${PREFIX}/lib/libVx.a
${RANLIB} ${PREFIX}/lib/libVxgl.a
-#.ifdef NOPORTDOCS
+#.if ${PORT_OPTIONS:MDOCS}
# @${ECHO_MSG} "==> Extra documentation WILL NOT be installed."
#.else
# @${ECHO_MSG} "==> Installing extra docs under ${PREFIX}/share/doc/v..."
-## ${MKDIR} ${PREFIX}/share/doc/v
+## @${MKDIR} ${PREFIX}/share/doc/v
# ${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/v
# ${FIND} ${PREFIX}/share/doc/v -type d -exec ${CHMOD} 755 {} \;
# ${FIND} ${PREFIX}/share/doc/v -type f -exec ${CHMOD} 644 {} \;
# @${ECHO_MSG} "==> Extra docs installed. Note, you will need *tex to read 'em."
#.endif
+ @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/v/pkg-descr b/x11-toolkits/v/pkg-descr
index 65677a7c3f69..f6e0fd5e7dcc 100644
--- a/x11-toolkits/v/pkg-descr
+++ b/x11-toolkits/v/pkg-descr
@@ -8,4 +8,4 @@ toolkits on both environments).
Full documentation, many code examples, and the V toolkit for Windows
systems is available at the V web site:
-WWW: http://vgui.sf.net
+WWW: http://vgui.sourceforge.net/