Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= xine |
8 |
PORTNAME= xine |
9 |
PORTVERSION= 0.99.6 |
9 |
PORTVERSION= 0.99.7 |
10 |
PORTREVISION= 7 |
|
|
11 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-ui/${PORTVERSION} |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-ui/${PORTVERSION} |
13 |
DISTNAME= ${PORTNAME}-ui-${PORTVERSION} |
12 |
DISTNAME= ${PORTNAME}-ui-${PORTVERSION} |
Lines 15-38
Link Here
|
15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= An X11 multimedia player |
15 |
COMMENT= An X11 multimedia player |
17 |
|
16 |
|
|
|
17 |
LICENSE= GPLv2 |
18 |
|
18 |
BUILD_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info |
19 |
BUILD_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info |
19 |
# Please update libxine PLUGINSDIR as well (see below) |
20 |
# Please update libxine PLUGINSDIR as well (see below) |
20 |
LIB_DEPENDS= xine.2:${PORTSDIR}/multimedia/libxine \ |
21 |
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo \ |
21 |
png15:${PORTSDIR}/graphics/png |
22 |
jpeg:${PORTSDIR}/graphics/jpeg \ |
|
|
23 |
png15:${PORTSDIR}/graphics/png \ |
24 |
xine:${PORTSDIR}/multimedia/libxine |
22 |
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info |
25 |
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info |
23 |
|
26 |
|
|
|
27 |
OPTIONS_DEFINE= CACA AALIB LIRC CURL WIN32_CODECS NLS XFT DOCS |
28 |
OPTIONS_DEFAULT=CURL WIN32_CODECS XFT |
29 |
WIN32_CODECS_DESC= Enable win32 codecs (for i386 only) |
30 |
|
24 |
USE_XZ= yes |
31 |
USE_XZ= yes |
25 |
USE_XORG= x11 xt xtst xv xinerama xxf86vm |
32 |
USE_XORG= x11 xext xinerama xscrnsaver xt xtst xv xxf86vm |
26 |
USE_GETTEXT= yes |
33 |
USE_GETTEXT= yes |
27 |
USE_GMAKE= yes |
34 |
USE_GMAKE= yes |
28 |
INSTALLS_ICONS= yes |
|
|
29 |
GNU_CONFIGURE= yes |
35 |
GNU_CONFIGURE= yes |
30 |
CONFIGURE_ARGS+= --enable-vdr-keys |
36 |
CONFIGURE_ARGS= --enable-vdr-keys \ |
31 |
CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
37 |
--disable-nvtvsimple |
32 |
THREAD_LIBS="${PTHREAD_LIBS}" |
38 |
MAKE_ENV= V=1 |
|
|
39 |
INSTALLS_ICONS= yes |
40 |
MAKE_JOBS_SAFE= yes |
41 |
|
33 |
CPPFLAGS+= -I${LOCALBASE}/include |
42 |
CPPFLAGS+= -I${LOCALBASE}/include |
34 |
LDFLAGS+= -L${LOCALBASE}/lib |
43 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
MAKE_JOBS_SAFE= yes |
|
|
36 |
|
44 |
|
37 |
MANLANG= "" de es fr pl |
45 |
MANLANG= "" de es fr pl |
38 |
MAN1_EN= aaxine.1 xine-bugreport.1 xine-check.1 xine-remote.1 xine.1 |
46 |
MAN1_EN= aaxine.1 xine-bugreport.1 xine-check.1 xine-remote.1 xine.1 |
Lines 41-61
Link Here
|
41 |
MAN1_FR= xine.1 |
49 |
MAN1_FR= xine.1 |
42 |
MAN1_PL= aaxine.1 xine-remote.1 xine.1 |
50 |
MAN1_PL= aaxine.1 xine-remote.1 xine.1 |
43 |
|
51 |
|
44 |
OPTIONS= CACA "Enable libcaca output" off \ |
|
|
45 |
AALIB "Enable aalib output" off \ |
46 |
LIRC "Enable lirc support" off \ |
47 |
CURL "Enable curl support" on \ |
48 |
WIN32_CODECS "Enable win32 codecs (for i386 only)" on \ |
49 |
NLS "Enable Native Language Support" on \ |
50 |
XFT "Enable Xft support" on |
51 |
|
52 |
DOCSDIR= ${PREFIX}/share/doc/xine-ui |
52 |
DOCSDIR= ${PREFIX}/share/doc/xine-ui |
53 |
XINE_PLUGINSDIR= lib/xine/plugins/2.1 |
53 |
XINE_PLUGINSDIR= lib/xine/plugins/2.1 |
54 |
|
54 |
|
55 |
.include <bsd.port.pre.mk> |
55 |
.include <bsd.port.pre.mk> |
56 |
|
56 |
|
57 |
.if ${ARCH} == "i386" |
57 |
.if ${ARCH} == "i386" |
58 |
.if !defined(WITHOUT_WIN32_CODECS) |
58 |
.if ${PORT_OPTIONS:MWIN32_CODECS} |
59 |
RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} |
59 |
RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} |
60 |
|
60 |
|
61 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
61 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
Lines 63-125
Link Here
|
63 |
.endif |
63 |
.endif |
64 |
.endif |
64 |
.endif |
65 |
|
65 |
|
66 |
.if defined(WITHOUT_NLS) |
66 |
.if ${PORT_OPTIONS:MNLS} |
67 |
CONFIGURE_ARGS+=--disable-nls |
|
|
68 |
PLIST_SUB+= NLS="@comment " |
69 |
.else |
70 |
USE_GETTEXT= yes |
67 |
USE_GETTEXT= yes |
71 |
PLIST_SUB+= NLS="" |
68 |
PLIST_SUB+= NLS="" |
|
|
69 |
.else |
70 |
CONFIGURE_ARGS+=--disable-nls |
71 |
PLIST_SUB+= NLS="@comment " |
72 |
.endif |
72 |
.endif |
73 |
|
73 |
|
74 |
.if !defined(WITHOUT_XFT) |
74 |
.if ${PORT_OPTIONS:MXFT} |
75 |
USE_XORG+= xft |
75 |
USE_XORG+= xft |
76 |
.else |
76 |
.else |
77 |
CONFIGURE_ARGS+= --disable-xft |
77 |
CONFIGURE_ARGS+= --disable-xft |
78 |
.endif |
78 |
.endif |
79 |
|
79 |
|
80 |
.if !defined(WITHOUT_CURL) |
80 |
.if ${PORT_OPTIONS:MCURL} |
81 |
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl |
81 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
82 |
.else |
82 |
.else |
83 |
CONFIGURE_ARGS+= --without-curl |
83 |
CONFIGURE_ARGS+= --without-curl |
84 |
.endif |
84 |
.endif |
85 |
|
85 |
|
86 |
.if defined(WITH_LIRC) |
86 |
.if ${PORT_OPTIONS:MLIRC} |
87 |
LIB_DEPENDS+= lirc_client.2:${PORTSDIR}/comms/lirc |
87 |
LIB_DEPENDS+= lirc_client:${PORTSDIR}/comms/lirc |
88 |
CONFIGURE_ARGS+= --enable-lirc |
|
|
89 |
CONFIGURE_ENV+= LIRC_CFLAGS="-I${LOCALBASE}/include" \ |
88 |
CONFIGURE_ENV+= LIRC_CFLAGS="-I${LOCALBASE}/include" \ |
90 |
LIRC_LIBS="-L${LOCALBASE}/libs -llirc_client" |
89 |
LIRC_LIBS="-L${LOCALBASE}/libs -llirc_client" |
|
|
90 |
CONFIGURE_ARGS+= --enable-lirc |
91 |
.else |
91 |
.else |
92 |
CONFIGURE_ARGS+= --disable-lirc |
92 |
CONFIGURE_ARGS+= --disable-lirc |
93 |
.endif |
93 |
.endif |
94 |
|
94 |
|
95 |
.if defined(WITH_CACA) |
95 |
.if ${PORT_OPTIONS:MCACA} |
96 |
.if !exists(${LOCALBASE}/${XINE_PLUGINSDIR}/xineplug_vo_out_caca.so) |
96 |
.if !exists(${LOCALBASE}/${XINE_PLUGINSDIR}/xineplug_vo_out_caca.so) |
97 |
IGNORE= libxine should be compiled with caca support |
97 |
IGNORE= libxine should be compiled with caca support |
98 |
.endif |
98 |
.endif |
99 |
LIB_DEPENDS+= caca.0:${PORTSDIR}/graphics/libcaca |
99 |
LIB_DEPENDS+= caca:${PORTSDIR}/graphics/libcaca |
100 |
PLIST_SUB+= WITH_CACA="" |
100 |
PLIST_SUB+= CACA="" |
101 |
.else |
101 |
.else |
102 |
PLIST_SUB+= WITH_CACA="@comment " |
|
|
103 |
CONFIGURE_ARGS+= --without-caca |
102 |
CONFIGURE_ARGS+= --without-caca |
|
|
103 |
PLIST_SUB+= CACA="@comment " |
104 |
.endif |
104 |
.endif |
105 |
|
105 |
|
106 |
.if defined(WITH_AALIB) |
106 |
.if ${PORT_OPTIONS:MAALIB} |
107 |
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib |
107 |
LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib |
108 |
PLIST_SUB+= WITH_AALIB="" |
|
|
109 |
CONFIGURE_ARGS+= --with-aalib |
108 |
CONFIGURE_ARGS+= --with-aalib |
|
|
109 |
PLIST_SUB+= AALIB="" |
110 |
.else |
110 |
.else |
111 |
PLIST_SUB+= WITH_AALIB="@comment " |
|
|
112 |
CONFIGURE_ARGS+= --without-aalib --disable-aalibtest |
111 |
CONFIGURE_ARGS+= --without-aalib --disable-aalibtest |
|
|
112 |
PLIST_SUB+= AALIB="@comment " |
113 |
.endif |
113 |
.endif |
114 |
|
114 |
|
115 |
post-patch: |
115 |
post-patch: |
116 |
@${REINPLACE_CMD} -e \ |
116 |
@${REINPLACE_CMD} -e \ |
117 |
's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \ |
117 |
'/THREAD_LIBS/s|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure |
118 |
s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g' \ |
118 |
@${REINPLACE_CMD} -e \ |
119 |
${WRKSRC}/configure |
119 |
's|<string.h>|<strings.h>|' ${WRKSRC}/src/aaui/main.c |
120 |
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/xitk/download.c |
120 |
.for file in doc/Makefile.in src/xitk/xine-toolkit/Makefile.in |
|
|
121 |
@${REINPLACE_CMD} -e \ |
122 |
's|: install-docsDATA|:|' ${WRKSRC}/${file} |
123 |
.endfor |
121 |
|
124 |
|
122 |
post-install: |
125 |
post-install: |
|
|
126 |
.if ${PORT_OPTIONS:MDOCS} |
127 |
@${MKDIR} ${DOCSDIR} |
128 |
cd ${WRKSRC}/doc \ |
129 |
&& ${INSTALL_DATA} README* ${DOCSDIR} |
130 |
@${MKDIR} ${PREFIX}/share/doc/xitk |
131 |
cd ${WRKSRC}/src/xitk/xine-toolkit \ |
132 |
&& ${INSTALL_DATA} README ${PREFIX}/share/doc/xitk |
133 |
.endif |
123 |
@${CAT} ${PKGMESSAGE} |
134 |
@${CAT} ${PKGMESSAGE} |
124 |
|
135 |
|
125 |
.include <bsd.port.post.mk> |
136 |
.include <bsd.port.post.mk> |