blob: b4933cbdbb593251b12102bf33629e602469917b (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# New ports collection makefile for: quesa
# Date created: 03 Feb 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= quesa
PORTVERSION= 1.6d18
CATEGORIES= graphics
MASTER_SITES= http://www.quesa.org/info/files/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= tiamat@comset.net
COMMENT= High level 3D graphics library compatible with Apple's QuickDraw(TM)
USE_REINPLACE= yes
WANT_AUTOCONF_VER?= 253
WANT_AUTOMAKE_VER?= 15
USE_INC_LIBTOOL_VER= 13
USE_GL= yes
USE_X_PREFIX= yes
.ifdef (WITH_QUESA_EXAMPLES)
USE_GNOME= gtk12
.endif
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/Development/Projects/Unix
CSH?= /bin/csh
.if !defined(WITH_QUESA_EXAMPLES)
PLIST_SUB= WITH_QUESA_EXAMPLES="@comment "
.else
PLIST_SUB= WITH_QUESA_EXAMPLES=""
.endif
.ifndef (WITH_QUESA_EXAMPLES)
pre-everything::
@${ECHO_CMD} ""
@${ECHO_CMD} "Define WITH_QUESA_EXAMPLES=yes to build and install Quesa example programs"
@${ECHO_CMD} ""
.endif
pre-patch:
@${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e "y/$$(${PRINTF} '\r')/\n/"
post-patch:
@${REINPLACE_CMD} -e 's|%%ACLOCAL%%|${ACLOCAL}|g; \
s|%%AUTOMAKE%%|${AUTOMAKE}|g; \
s|%%AUTOMAKE_ENV%%|${AUTOMAKE_ENV}|g; \
s|%%AUTOCONF%%|${AUTOCONF}|g; \
s|%%AUTOCONF_ENV%%|${AUTOCONF_ENV}|g; \
s|%%SETENV%%|${SETENV}|g' \
${WRKSRC}/Scripts/buildUnix.sh
.ifdef (WITH_QUESA_EXAMPLES)
@${REINPLACE_CMD} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g' \
${WRKSRC}/Makefile.am.examples
.endif
pre-configure:
cd ${WRKSRC}/Scripts && \
${CSH} ./prepareUnixTree.sh && ${CSH} ./buildUnix.sh
.ifdef (WITH_QUESA_EXAMPLES)
@(cd ${WRKSRC}/Examples && \
${SETENV} CC="${CC}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="${INSTALL}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
.endif
.ifdef (WITH_QUESA_EXAMPLES)
post-build:
@(cd ${WRKSRC}/Examples && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${ALL_TARGET})
.endif
.ifdef (WITH_QUESA_EXAMPLES)
post-install:
@(cd ${WRKSRC}/Examples && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET})
.endif
.include <bsd.port.mk>
|