Lines 6-102
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mpeg4ip |
8 |
PORTNAME= mpeg4ip |
9 |
PORTVERSION= 1.0 |
9 |
PORTVERSION= 1.1 |
10 |
CATEGORIES= multimedia audio ipv6 net |
10 |
CATEGORIES= multimedia audio ipv6 net |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
|
|
13 |
PKGNAMESUFFIX= ${PKG_NAME_SUFFIX} |
13 |
|
14 |
|
14 |
MAINTAINER= lioux@FreeBSD.org |
15 |
MAINTAINER= lioux@FreeBSD.org |
15 |
COMMENT= Standards-based system to encode, stream and play MPEG-4 audio/video |
16 |
COMMENT= Standards-based system to encode, stream and play MPEG-4 audio/video |
16 |
|
17 |
|
17 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm \ |
18 |
LIB_DEPENDS= faac.0:${PORTSDIR}/audio/faac \ |
18 |
pkg-config:${PORTSDIR}/devel/pkgconfig |
19 |
faad.0:${PORTSDIR}/audio/faad \ |
|
|
20 |
mp3lame.0:${PORTSDIR}/audio/lame \ |
21 |
id3tag.2:${PORTSDIR}/audio/libid3tag \ |
22 |
a52.0:${PORTSDIR}/audio/liba52 \ |
23 |
mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \ |
24 |
avcodec.0:${PORTSDIR}/multimedia/ffmpeg |
19 |
|
25 |
|
20 |
USE_GNOME= gtk20 |
26 |
USE_GNOME= gtk20 |
21 |
USE_GMAKE= yes |
|
|
22 |
USE_SDL= sdl |
27 |
USE_SDL= sdl |
23 |
USE_INC_LIBTOOL_VER=13 |
28 |
USE_GMAKE= yes |
|
|
29 |
USE_INC_LIBTOOL_VER=15 |
24 |
USE_REINPLACE= yes |
30 |
USE_REINPLACE= yes |
25 |
CONFIGURE_ARGS= --datadir=${DATADIR} \ |
31 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ |
26 |
--with-glib-prefix=${LOCALBASE} \ |
32 |
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" |
27 |
--with-gtk-prefix=${X11BASE} \ |
33 |
CONFIGURE_ARGS= --enable-ffmpeg \ |
28 |
--program-transform-name='' |
34 |
--enable-mp4live \ |
29 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
35 |
--disable-static |
30 |
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
|
|
31 |
INSTALLS_SHLIB= yes |
36 |
INSTALLS_SHLIB= yes |
32 |
|
37 |
|
33 |
DOC_FILES= COPYING README doc/MPEG4IP_Guide.pdf |
38 |
OPTIONS= ARTS "Enable Arts Support" Off \ |
34 |
PORTDOCS= COPYING MPEG4IP_Guide.pdf README |
39 |
ESOUND "Enable Esound Support" Off \ |
|
|
40 |
IPV6 "Enable IPV6 Support" On \ |
41 |
NAS "Enable Nas Support" Off \ |
42 |
OPTIMIZED_CFLAGS "Enable compilation optimizations" Off \ |
43 |
XVID "Enable XVID Support" On |
44 |
|
45 |
DOCS_FILES= ${PORTDOCS} |
46 |
PORTDOCS= MAINREADME.html MP4LIVE_INTERNALS.html MPEG4IP_Guide.pdf \ |
47 |
MP4LIVE_README.html PLAYER_INTERNALS.html PLAYER_README.html \ |
48 |
ReadingList.txt ReadingList.txt encoding.htm m4rm.html \ |
49 |
mp4player.jpg mrm.html pi.html prm.html |
35 |
|
50 |
|
36 |
MAN1= gmp4player.1 mp4creator.1 mp4encode.1 mp4live.1 |
51 |
MAN1= gmp4player.1 mp4creator.1 mp4encode.1 mp4live.1 |
37 |
MAN3= MP4.3 MP4AddAudioTrack.3 MP4AddHintTrack.3 MP4AddODTrack.3 \ |
52 |
MAN3= MP4.3 MP4AddAudioTrack.3 MP4AddHintTrack.3 MP4AddODTrack.3 \ |
38 |
MP4AddRtpESConfigurationPacket.3 MP4AddRtpHint.3 \ |
53 |
MP4AddRtpESConfigurationPacket.3 MP4AddRtpHint.3 MP4AddRtpImmediateData.3 \ |
39 |
MP4AddRtpImmediateData.3 MP4AddRtpPacket.3 MP4AddRtpSampleData.3 \ |
54 |
MP4AddRtpPacket.3 MP4AddRtpSampleData.3 MP4AddRtpVideoHint.3 \ |
40 |
MP4AddRtpVideoHint.3 MP4AddSceneTrack.3 MP4AddSystemsTrack.3 \ |
55 |
MP4AddSceneTrack.3 MP4AddSystemsTrack.3 MP4AddTrack.3 \ |
41 |
MP4AddTrack.3 MP4AddVideoTrack.3 MP4AppendHintTrackSdp.3 \ |
56 |
MP4AddTrackEdit.3 MP4AddVideoTrack.3 MP4AppendHintTrackSdp.3 \ |
42 |
MP4AddTrackEdit.3 \ |
|
|
43 |
MP4AppendSessionSdp.3 MP4BinaryToBase16.3 MP4BinaryToBase64.3 \ |
57 |
MP4AppendSessionSdp.3 MP4BinaryToBase16.3 MP4BinaryToBase64.3 \ |
44 |
MP4CloneTrack.3 \ |
58 |
MP4CloneTrack.3 MP4Close.3 MP4ConvertFromMovieDuration.3 \ |
45 |
MP4Close.3 MP4ConvertFromMovieDuration.3 \ |
|
|
46 |
MP4ConvertFromTrackDuration.3 MP4ConvertFromTrackTimestamp.3 \ |
59 |
MP4ConvertFromTrackDuration.3 MP4ConvertFromTrackTimestamp.3 \ |
47 |
MP4ConvertToTrackDuration.3 MP4ConvertToTrackTimestamp.3 \ |
60 |
MP4ConvertToTrackDuration.3 MP4ConvertToTrackTimestamp.3 \ |
48 |
MP4CopySample.3 MP4CopyTrack.3 MP4DeleteTrackEdit.3 \ |
61 |
MP4CopySample.3 MP4CopyTrack.3 MP4Create.3 MP4DeleteTrack.3 \ |
49 |
MP4Create.3 MP4DeleteTrack.3 MP4Dump.3 MP4FindTrackId.3 \ |
62 |
MP4DeleteTrackEdit.3 MP4Dump.3 MP4FileInfo.3 MP4FindTrackId.3 \ |
50 |
MP4FileInfo.3 \ |
|
|
51 |
MP4FindTrackIndex.3 MP4GetAudioProfileLevel.3 MP4GetDuration.3 \ |
63 |
MP4FindTrackIndex.3 MP4GetAudioProfileLevel.3 MP4GetDuration.3 \ |
52 |
MP4GetGraphicsProfileLevel.3 MP4GetHintTrackReferenceTrackId.3 \ |
64 |
MP4GetGraphicsProfileLevel.3 MP4GetHintTrackReferenceTrackId.3 \ |
53 |
MP4GetHintTrackRtpPayload.3 MP4GetHintTrackSdp.3 \ |
65 |
MP4GetHintTrackRtpPayload.3 MP4GetHintTrackSdp.3 MP4GetNumberOfTracks.3 \ |
54 |
MP4GetNumberOfTracks.3 MP4GetODProfileLevel.3 \ |
66 |
MP4GetODProfileLevel.3 MP4GetRtpHintNumberOfPackets.3 MP4GetRtpPacketBFrame.3 \ |
55 |
MP4GetRtpHintNumberOfPackets.3 MP4GetRtpPacketBFrame.3 \ |
67 |
MP4GetRtpPacketTransmitOffset.3 MP4GetRtpTimestampStart.3 MP4GetSampleDuration.3 \ |
56 |
MP4GetRtpPacketTransmitOffset.3 MP4GetRtpTimestampStart.3 \ |
68 |
MP4GetSampleIdFromEditTime.3 MP4GetSampleIdFromTime.3 MP4GetSampleRenderingOffset.3 \ |
57 |
MP4GetSampleDuration.3 MP4GetSampleIdFromTime.3 \ |
69 |
MP4GetSampleSize.3 MP4GetSampleSync.3 MP4GetSampleTime.3 \ |
58 |
MP4GetSampleIdFromEditTime.3 \ |
70 |
MP4GetSceneProfileLevel.3 MP4GetSessionSdp.3 MP4GetTimeScale.3 \ |
59 |
MP4GetSampleRenderingOffset.3 MP4GetSampleSize.3 \ |
71 |
MP4GetTrackAudioMpeg4Type.3 MP4GetTrackAudioType.3 MP4GetTrackBitRate.3 \ |
60 |
MP4GetSampleSync.3 MP4GetSampleTime.3 MP4GetSceneProfileLevel.3 \ |
72 |
MP4GetTrackDuration.3 MP4GetTrackESConfiguration.3 MP4GetTrackEditDuration.3 \ |
61 |
MP4GetSessionSdp.3 MP4GetTimeScale.3 MP4GetTrackAudioType.3 \ |
73 |
MP4GetTrackEditDwell.3 MP4GetTrackEditMediaStart.3 MP4GetTrackEditStart.3 \ |
62 |
MP4GetTrackBitRate.3 MP4GetTrackDuration.3 \ |
74 |
MP4GetTrackEditTotalDuration.3 MP4GetTrackFixedSampleDuration.3 MP4GetTrackMaxSampleSize.3 \ |
63 |
MP4GetTrackESConfiguration.3 MP4GetTrackFixedSampleDuration.3 \ |
75 |
MP4GetTrackNumberOfEdits.3 MP4GetTrackNumberOfSamples.3 MP4GetTrackTimeScale.3 \ |
64 |
MP4GetTrackMaxSampleSize.3 MP4GetTrackNumberOfSamples.3 \ |
76 |
MP4GetTrackType.3 MP4GetTrackVideoFrameRate.3 MP4GetTrackVideoHeight.3 \ |
65 |
MP4GetTrackTimeScale.3 MP4GetTrackType.3 \ |
|
|
66 |
MP4GetTrackAudioMpeg4Type.3 MP4GetTrackEditDuration.3 \ |
67 |
MP4GetTrackEditDwell.3 MP4GetTrackEditMediaStart.3 \ |
68 |
MP4GetTrackEditStart.3 MP4GetTrackEditTotalDuration.3 \ |
69 |
MP4GetTrackNumberOfEdits.3 \ |
70 |
MP4GetTrackVideoFrameRate.3 MP4GetTrackVideoHeight.3 \ |
71 |
MP4GetTrackVideoType.3 MP4GetTrackVideoWidth.3 MP4GetVerbosity.3 \ |
77 |
MP4GetTrackVideoType.3 MP4GetTrackVideoWidth.3 MP4GetVerbosity.3 \ |
72 |
MP4GetVideoProfileLevel.3 MP4MakeIsmaCompliant.3 MP4Modify.3 \ |
78 |
MP4GetVideoProfileLevel.3 MP4Info.3 MP4MakeIsmaCompliant.3 \ |
73 |
MP4Info.3 \ |
79 |
MP4Modify.3 MP4Optimize.3 MP4Read.3 MP4ReadRtpHint.3 MP4ReadRtpPacket.3 \ |
74 |
MP4Optimize.3 MP4Read.3 MP4ReadRtpHint.3 MP4ReadRtpPacket.3 \ |
80 |
MP4ReadSample.3 MP4ReadSampleFromEditTime.3 MP4ReadSampleFromTime.3 \ |
75 |
MP4ReadSample.3 MP4SetAudioProfileLevel.3 \ |
81 |
MP4SetAudioProfileLevel.3 MP4SetGraphicsProfileLevel.3 MP4SetHintTrackRtpPayload.3 \ |
76 |
MP4ReadSampleFromEditTime.3 MP4ReadSampleFromTime.3 \ |
82 |
MP4SetHintTrackSdp.3 MP4SetODProfileLevel.3 MP4SetRtpTimestampStart.3 \ |
77 |
MP4SetGraphicsProfileLevel.3 MP4SetHintTrackRtpPayload.3 \ |
83 |
MP4SetSampleRenderingOffset.3 MP4SetSceneProfileLevel.3 MP4SetSessionSdp.3 \ |
78 |
MP4SetHintTrackSdp.3 MP4SetODProfileLevel.3 \ |
84 |
MP4SetTimeScale.3 MP4SetTrackESConfiguration.3 MP4SetTrackEditDuration.3 \ |
79 |
MP4SetRtpTimestampStart.3 MP4SetSampleRenderingOffset.3 \ |
85 |
MP4SetTrackEditDwell.3 MP4SetTrackEditMediaStart.3 MP4SetTrackTimeScale.3 \ |
80 |
MP4SetSceneProfileLevel.3 MP4SetSessionSdp.3 MP4SetTimeScale.3 \ |
86 |
MP4SetVerbosity.3 MP4SetVideoProfileLevel.3 MP4WriteRtpHint.3 MP4WriteSample.3 |
81 |
MP4SetTrackEditDuration.3 MP4SetTrackEditDwell.3 \ |
|
|
82 |
MP4SetTrackEditMediaStart.3 \ |
83 |
MP4SetTrackESConfiguration.3 MP4SetTrackTimeScale.3 \ |
84 |
MP4SetVerbosity.3 MP4SetVideoProfileLevel.3 MP4WriteRtpHint.3 \ |
85 |
MP4WriteSample.3 |
86 |
|
87 |
post-extract: |
88 |
.for dir in SDL |
89 |
@${RM} -Rf ${WRKSRC}/lib/${dir} |
90 |
.endfor |
91 |
|
87 |
|
92 |
.include <bsd.port.pre.mk> |
88 |
.include <bsd.port.pre.mk> |
93 |
|
89 |
|
94 |
.if ${OSVERSION} >= 502126 |
90 |
.if ${OSVERSION} >= 502100 |
95 |
BROKEN= "Does not compile on FreeBSD >= 5.x" |
91 |
EXTRA_PATCHES+= ${FILESDIR}/sdp-patch |
|
|
92 |
.else |
93 |
USE_GCC= 3.4 |
94 |
.endif |
95 |
|
96 |
.if exists(${LOCALBASE}/lib/libartsc.so.0) |
97 |
WITH_ARTS= yes |
98 |
.endif |
99 |
|
100 |
.if ${HAVE_GNOME:Mesound}!="" |
101 |
WITH_ESOUND= yes |
102 |
.endif |
103 |
|
104 |
.if exists(${LOCALBASE}/lib/libaudio.so.2) |
105 |
WITH_NAS= yes |
106 |
.endif |
107 |
|
108 |
.if exists(${LOCALBASE}/lib/libxvidcore.so.4) |
109 |
WITH_XVID= yes |
110 |
.endif |
111 |
|
112 |
.if defined(WITH_ARTS) |
113 |
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts |
114 |
.endif |
115 |
|
116 |
.if defined(WITH_ESOUND) |
117 |
USE_GNOME+= esound |
118 |
|
119 |
PKG_NAME_SUFFIX+=-esound |
96 |
.endif |
120 |
.endif |
97 |
|
121 |
|
98 |
.if exists(${LOCALBASE}/include/systems.h) |
122 |
.if defined(WITH_NAS) |
99 |
CONFLICTS= faad* |
123 |
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas |
|
|
124 |
.endif |
125 |
|
126 |
.if defined(WITH_XVID) |
127 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
128 |
PLIST_SUB+= XVID="" |
129 |
.else |
130 |
PLIST_SUB+= XVID="@comment " |
100 |
.endif |
131 |
.endif |
101 |
|
132 |
|
102 |
.if ${ARCH} == "amd64" |
133 |
.if ${ARCH} == "amd64" |
Lines 104-154
Link Here
|
104 |
.endif |
135 |
.endif |
105 |
|
136 |
|
106 |
post-patch: |
137 |
post-patch: |
|
|
138 |
# don't compile or use libmp4v2 |
139 |
@${REINPLACE_CMD} -e 's|mp4v2||' ${WRKSRC}/lib/Makefile.in |
140 |
@${REINPLACE_CMD} -e 's|-I$(top_srcdir)/lib/mp4v2||; \ |
141 |
s|$$(top_builddir)/lib/mp4v2/libmp4v2.la||; \ |
142 |
s|@LIBS@|@LIBS@ -lmp4v2|' \ |
143 |
${WRKSRC}/player/src/Makefile.in \ |
144 |
${WRKSRC}/lib/mpeg2t/Makefile.in \ |
145 |
${WRKSRC}/util/*/Makefile.in \ |
146 |
${WRKSRC}/server/*/Makefile.in |
147 |
@${REINPLACE_CMD} -e 's|-I$(top_srcdir)/lib/mp4v2||; \ |
148 |
s|../mp4v2/libmp4v2.la||; s|@LIBS@|@LIBS@ -lmp4v2|' \ |
149 |
${WRKSRC}/lib/mp4av/Makefile.in |
150 |
@${REINPLACE_CMD} -e 's|mp4venc_template.par||' \ |
151 |
${WRKSRC}/server/util/mp4encode/Makefile.in |
107 |
@${FIND} ${WRKSRC} -type f -name "*.[ch]" -or -name "*.cpp" | ${XARGS} -n 10 \ |
152 |
@${FIND} ${WRKSRC} -type f -name "*.[ch]" -or -name "*.cpp" | ${XARGS} -n 10 \ |
108 |
${REINPLACE_CMD} -e \ |
153 |
${REINPLACE_CMD} -e \ |
109 |
's|<stdint.h>|<inttypes.h>|; \ |
154 |
's|<stdint.h>|<inttypes.h>|; \ |
|
|
155 |
s|mp4v2/mp4.h|mp4.h|; \ |
110 |
s|<malloc.h>|<stdlib.h>|; \ |
156 |
s|<malloc.h>|<stdlib.h>|; \ |
|
|
157 |
s|<SDL/|<SDL11/|; \ |
111 |
s|<strstream.h>|<iostream>|' |
158 |
s|<strstream.h>|<iostream>|' |
112 |
# replacing distfile's libs with ports' versions |
159 |
# replacing distfile's libs with ports' versions |
113 |
# CFLAGS safeness |
160 |
# CFLAGS safeness |
114 |
@${REINPLACE_CMD} -E -e 's|lib/SDL/sdl-config|${SDL_CONFIG}|; \ |
161 |
@${REINPLACE_CMD} -E -e 's|lib/SDL/sdl-config|${SDL_CONFIG}|; \ |
|
|
162 |
s|sdl-config|${SDL_CONFIG}|; \ |
115 |
s|^(SDL_LIBS=).+$$|\1"`${SDL_CONFIG} --libs`"|; \ |
163 |
s|^(SDL_LIBS=).+$$|\1"`${SDL_CONFIG} --libs`"|; \ |
116 |
s|-Wmissing-declarations||' \ |
164 |
s|-Wmissing-declarations||; s|-Wmissing-prototypes||; \ |
|
|
165 |
s|>&/|>/|' \ |
117 |
${CONFIGURE_WRKSRC}/configure |
166 |
${CONFIGURE_WRKSRC}/configure |
118 |
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \ |
|
|
119 |
-n 10 ${REINPLACE_CMD} -E -e \ |
120 |
's|-I[^ ]+lib/SDL/include|-I${LOCALBASE}/include/SDL11|; \ |
121 |
s|-O[0-3]|-O|; \ |
122 |
s|\$$[^ ]+/lib/SDL/src/main/libSDLmain.a|${LOCALBASE}/lib/libSDLmain-1.1.a|' |
123 |
@${REINPLACE_CMD} -E -e \ |
124 |
's!SDL_(AudioDelayMsec|HasAudioDelayMsec).*;$$!0;!' \ |
125 |
${WRKSRC}/player/src/audio_sdl.cpp |
126 |
# do not install manm man pages |
167 |
# do not install manm man pages |
127 |
@${REINPLACE_CMD} -E \ |
168 |
@${REINPLACE_CMD} -E \ |
128 |
-e 's|api.mpt||' \ |
169 |
-e 's|api.mpt||' \ |
129 |
-e 's|^(install-man.*)install-manm|\1|' \ |
170 |
-e 's|^(install-man.*)install-manm|\1|' \ |
130 |
${WRKSRC}/doc/mp4v2/Makefile.in |
171 |
${WRKSRC}/doc/mp4v2/Makefile.in |
131 |
# Disable xvid support - mpep4ip doesn't support xvid 1.0.x, but tries |
|
|
132 |
# to use it anyway. |
133 |
@${REINPLACE_CMD} -e 's|use_mpeg4ip_xvid=false|use_mpeg4ip_xvid=true|g' \ |
134 |
-e 's|#define HAVE_XVID_H 1||g' \ |
135 |
${WRKSRC}/configure |
136 |
|
137 |
.if ${ARCH} != "i386" |
138 |
# emms opcode should be noop in non-i386 non-MMX ARCH |
139 |
@${ECHO_CMD} '#define EMMS()' \ |
140 |
>> ${WRKSRC}/lib/xvid/portab.h |
141 |
.endif |
142 |
|
172 |
|
143 |
post-configure: |
173 |
post-configure: |
144 |
# disable GNU auto* tools |
174 |
# disable GNU auto* tools |
145 |
# remove -Werror |
175 |
# remove -Werror |
146 |
@${FIND} ${WRKSRC} -type f -name "Makefile" | ${XARGS} \ |
|
|
147 |
-n 10 ${REINPLACE_CMD} -E -e \ |
148 |
's! (autoconf|autoheader|automake|aclocal)$$! ${TRUE}!; \ |
149 |
s|-Werror||g' |
150 |
# configure is not propagating PTHREAD_LIBS to the makefiles |
151 |
# investigated by David Yeske <dyeske@yahoo.com> |
152 |
.if ${OSVERSION} >= 500000 |
176 |
.if ${OSVERSION} >= 500000 |
153 |
@${REINPLACE_CMD} -E \ |
177 |
@${REINPLACE_CMD} -E \ |
154 |
-e 's|(-lSDL-...)|"${PTHREAD_LIBS} \1"|' \ |
178 |
-e 's|(-lSDL-...)|"${PTHREAD_LIBS} \1"|' \ |
Lines 158-167
Link Here
|
158 |
.endif |
182 |
.endif |
159 |
|
183 |
|
160 |
post-install: |
184 |
post-install: |
|
|
185 |
@${MKDIR} ${DATADIR} |
186 |
@${INSTALL_DATA} ${WRKSRC}/server/util/mp4encode/mp4venc_template.par ${DATADIR} |
161 |
.ifndef(NOPORTDOCS) |
187 |
.ifndef(NOPORTDOCS) |
162 |
@${MKDIR} ${DOCSDIR} |
188 |
@${MKDIR} ${DOCSDIR} |
163 |
.for files in ${DOC_FILES} |
189 |
.for files in ${DOC_FILES} |
164 |
@${INSTALL_DATA} ${WRKSRC}/${files} ${DOCSDIR}/${files:C|^[^/]+/||} |
190 |
@${INSTALL_DATA} ${WRKSRC}/doc/${files} ${DOCSDIR} |
165 |
.endfor |
191 |
.endfor |
166 |
.endif |
192 |
.endif |
167 |
|
193 |
|
Lines 169-175
Link Here
|
169 |
WITHOUT_MMX= yes |
195 |
WITHOUT_MMX= yes |
170 |
.else |
196 |
.else |
171 |
. if (defined(MACHINE_CPU) && ${MACHINE_CPU:Mi486} == "i486") |
197 |
. if (defined(MACHINE_CPU) && ${MACHINE_CPU:Mi486} == "i486") |
172 |
WITH_OPTIMIZED_BYTESWAP=yes |
198 |
OPTIONS+= OPTIMIZED_BYTESWAP "Enable optimized byteswap routines" On \ |
|
|
199 |
MMX "Enable MMX Optimizations" On |
173 |
. endif |
200 |
. endif |
174 |
|
201 |
|
175 |
. if defined(WITH_OPTIMIZED_BYTESWAP) |
202 |
. if defined(WITH_OPTIMIZED_BYTESWAP) |
Lines 183-211
Link Here
|
183 |
|
210 |
|
184 |
.ifdef(WITHOUT_MMX) |
211 |
.ifdef(WITHOUT_MMX) |
185 |
CONFIGURE_ARGS+= --disable-mmx |
212 |
CONFIGURE_ARGS+= --disable-mmx |
|
|
213 |
.else |
214 |
BUILD_DEPEND+S= nasm:${PORTSDIR}/devel/nasm |
186 |
.endif |
215 |
.endif |
187 |
|
216 |
|
188 |
.if defined(WITH_OPTIMIZED_CFLAGS) |
217 |
.if defined(WITH_OPTIMIZED_CFLAGS) |
189 |
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer |
218 |
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer |
190 |
.endif |
|
|
191 |
|
192 |
pre-everything:: |
193 |
.ifndef(WITHOUT_IPV6) |
194 |
@${ECHO_MSG} '===> Define WITHOUT_IPV6 if you want to disable IPv6 support' |
195 |
.endif |
196 |
.ifndef(WITHOUT_MMX) |
197 |
@${ECHO_MSG} '===> Define WITHOUT_MMX if your system does not support MMX' |
198 |
.endif |
199 |
.ifndef(WITH_OPTIMIZED_BYTESWAP) |
200 |
@${ECHO_MSG} |
201 |
@${ECHO_MSG} '===> Define WITH_OPTIMIZED_BYTESWAP to use optimized byteswap' |
202 |
@${ECHO_MSG} '===> routines. This works only in the i386 architecture, and' |
203 |
@${ECHO_MSG} '===> only with 486 processors and above.' |
204 |
.endif |
205 |
.if !defined(WITH_OPTIMIZED_CFLAGS) |
206 |
@${ECHO_MSG} |
207 |
@${ECHO_MSG} '===> You can enable additional compilation optimizations' |
208 |
@${ECHO_MSG} '===> by defining WITH_OPTIMIZED_CFLAGS' |
209 |
.endif |
219 |
.endif |
210 |
|
220 |
|
211 |
.include <bsd.port.post.mk> |
221 |
.include <bsd.port.post.mk> |