blob: a4f38ddeb4d64f33b9c71c97fadd97bb774ef253 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
# New ports collection makefile for: gephex
# Date created: 25 Jan 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= gephex
PORTVERSION= 0.4.3b
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.gephex.org/download/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Software-based interactive video-effect system
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
USE_BZIP2= yes
USE_GMAKE= yes
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
USE_AUTOTOOLS= autoconf:259 autoheader:259 libtool:15 aclocal:19 automake:19
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-V4L --without-ASOUNDLIB --without-LINUX_JOYSTICK \
--without-FFMPEG --without-AVIFILE --without-MPEG3 \
--without-LIBPNG --without-SDL --without-SDL_IMAGE \
--without-SDL_TTF --without-AALIB --disable-static
USE_QT_VER= 3
WANT_SDL= yes
USE_LDCONFIG= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/${PORTNAME}-${PORTVERSION:R}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[[:alpha:]]//g}
ONLY_FOR_ARCHS= i386
MAN1= gephex-engine.1 gephex-gui.1 gephex.1
.include <bsd.port.pre.mk>
.if ${HAVE_SDL:Msdl} && ${HAVE_SDL:Mimage} && ${HAVE_SDL:Mttf} && !defined(WITHOUT_SDL)
WITH_SDL= yes
.endif
.if exists(${LOCALBASE}/lib/libaa.so.1) && !defined(WITHOUT_AALIB)
WITH_AALIB= yes
.endif
.if exists(${LOCALBASE}/bin/avifile-config) && !defined(WITHOUT_AVIFILE)
WITH_AVIFILE= yes
.endif
.if exists(${LOCALBASE}/lib/libavcodec.a) && !defined(WITHOUT_FFMPEG)
WITH_FFMPEG= yes
.endif
.if exists(${LOCALBASE}/lib/libmpeg3.a) && !defined(WITHOUT_MPEG3)
WITH_MPEG3= yes
.endif
.if exists(${LOCALBASE}/lib/libpng.so.5) && !defined(WITHOUT_PNG)
WITH_PNG= yes
.endif
.if exists(${X11BASE}/lib/libGL.so) && !defined(WITHOUT_GL)
WITH_GL= yes
.endif
.if ${ARCH} != "i386"
CONFIGURE_ARGS+= --disable-mmx
.else
BUILD_DEPENDS+= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
.endif
.ifdef (WITH_SDL)
CONFIGURE_ARGS+= --with-SDL --with-SDL_IMAGE --with-SDL_TTF
USE_SDL= sdl image ttf
.endif
.ifdef (WITH_AALIB)
CONFIGURE_ARGS+= --with-AALIB
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
.endif
.ifdef (WITH_AVIFILE)
CONFIGURE_ARGS+= --with-AVIFILE
LIB_DEPENDS+= aviplay.0:${PORTSDIR}/multimedia/avifile
.endif
.ifdef (WITH_FFMPEG)
CONFIGURE_ARGS+= --with-FFMPEG
BUILD_DEPENDS+= ${LOCALBASE}/lib/libavcodec.a:${PORTSDIR}/multimedia/ffmpeg
.endif
.ifdef (WITH_MPEG3)
CONFIGURE_ARGS+= --with-MPEG3
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmpeg3.a:${PORTSDIR}/multimedia/libmpeg3
.endif
.ifdef (WITH_PNG)
CONFIGURE_ARGS+= --with-LIBPNG
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
.endif
.ifdef (WITH_GL)
CONFIGURE_ARGS+= --with-GL
USE_GL= yes
.endif
.if !defined(WITH_SDL)
PLIST_SUB+= WITH_SDL="@comment "
.else
PLIST_SUB+= WITH_SDL=""
.endif
.if !defined(WITH_FFMPEG)
PLIST_SUB+= WITH_FFMPEG="@comment "
.else
PLIST_SUB+= WITH_FFMPEG=""
.endif
.if !defined(WITH_PNG)
PLIST_SUB+= WITH_PNG="@comment "
.else
PLIST_SUB+= WITH_PNG=""
.endif
.ifdef (NOPORTDOCS)
DO_DOCS=\#
.endif
pre-everything::
@${ECHO_CMD} "Building with the following configuration:"
.if defined (WITH_AALIB)
@${ECHO_CMD} "WITH_AALIB=${WITH_AALIB}"
.else
@${ECHO_CMD} "WITH_AALIB=no"
.endif
.if defined (WITH_AVIFILE)
@${ECHO_CMD} "WITH_AVIFILE=${WITH_AVIFILE}"
.else
@${ECHO_CMD} "WITH_AVIFILE=no"
.endif
.if defined (WITH_FFMPEG)
@${ECHO_CMD} "WITH_FFMPEG=${WITH_FFMPEG}"
.else
@${ECHO_CMD} "WITH_FFMPEG=no"
.endif
.if defined (WITH_GL)
@${ECHO_CMD} "WITH_GL=${WITH_GL}"
.else
@${ECHO_CMD} "WITH_GL=no"
.endif
.if defined (WITH_MPEG3)
@${ECHO_CMD} "WITH_MPEG3=${WITH_MPEG3}"
.else
@${ECHO_CMD} "WITH_MPEG3=no"
.endif
.if defined (WITH_PNG)
@${ECHO_CMD} "WITH_PNG=${WITH_PNG}"
.else
@${ECHO_CMD} "WITH_PNG=no"
.endif
.if defined (WITH_SDL)
@${ECHO_CMD} "WITH_SDL=${WITH_SDL}"
.else
@${ECHO_CMD} "WITH_SDL=no"
.endif
@${ECHO_CMD} "Use WITH[OUT]_ definitions to change current port behaviour"
post-patch:
@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|; \
s|%%X11BASE%%|${X11BASE}|; \
s|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's|%%PORTDOCS%%|${DO_DOCS}|' ${WRKSRC}/Makefile.am
.include <bsd.port.post.mk>
|