blob: f798002b50aa5e5b48db2116b161f4720894febc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Created by: Donald Burr <dburr@FreeBSD.org>
# $FreeBSD$
PORTNAME= v
PORTVERSION= 1.90
PORTREVISION= 5
CATEGORIES= x11-toolkits devel graphics
MASTER_SITES= SF/${PORTNAME}gui/V%20GUI/${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME}a-patch${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ GUI development framework for X11 and Microsoft Windows
USES= dos2unix gmake
USE_XORG= x11 xt xmu xaw
MAKE_ENV= INSTALLDIR=${PREFIX} HOMEV=${WRKSRC}
WRKSRC= ${WRKDIR}/home/vgui
OPTIONS_DEFINE= OPENGL # DOCS (commented out, see below)
OPTIONS_DEFAULT= OPENGL
OPENGL_USE= GL=glu
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
post-build:
${RANLIB} ${WRKSRC}/lib/libVx.a
${RANLIB} ${WRKSRC}/lib/libVxgl.a
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/viconedx ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/b2v ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/icondemox ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/protox ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/tutappx ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/vdrawx ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/vdrawexx ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/vgenx ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/vtestlibx ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lib/libVx.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/libVxgl.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/include/v
${INSTALL_DATA} ${WRKSRC}/includex/v/*.h ${STAGEDIR}${PREFIX}/include/v
${INSTALL_DATA} ${WRKSRC}/includex/v/*.cxx ${STAGEDIR}${PREFIX}/include/v
.include <bsd.port.mk>
|