Fri Apr 12 19:42:05 2024 UTC (44d)
multimedia/gmplayer: Make this cross-compile.

Skip the broken X11 detection in configure by passing `--enable-x11'.
Since this is a gtk2+ front end to mplayer, we require X11 anyway.


(riastradh)
diff -r1.167 -r1.168 pkgsrc/multimedia/gmplayer/Makefile

cvs diff -r1.167 -r1.168 pkgsrc/multimedia/gmplayer/Makefile (expand / switch to unified diff)

--- pkgsrc/multimedia/gmplayer/Makefile 2024/04/12 19:32:56 1.167
+++ pkgsrc/multimedia/gmplayer/Makefile 2024/04/12 19:42:05 1.168
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.167 2024/04/12 19:32:56 riastradh Exp $ 1# $NetBSD: Makefile,v 1.168 2024/04/12 19:42:05 riastradh Exp $
2# 2#
3# NOTE: if you are updating both mplayer and gmplayer, you must ensure 3# NOTE: if you are updating both mplayer and gmplayer, you must ensure
4# that *both* distinfo files contain the correct, up-to-date files and 4# that *both* distinfo files contain the correct, up-to-date files and
5# checksums. 5# checksums.
6# 6#
7# NOTE: patches are shared between mplayer and gmplayer! 7# NOTE: patches are shared between mplayer and gmplayer!
8# 8#
9 9
10PKGNAME= gmplayer-${MPLAYER_VERSION} 10PKGNAME= gmplayer-${MPLAYER_VERSION}
11PKGREVISION= 9 11PKGREVISION= 9
12 12
13SKIN_SITES= http://www1.mplayerhq.hu/MPlayer/skins/ \ 13SKIN_SITES= http://www1.mplayerhq.hu/MPlayer/skins/ \
14 http://www2.mplayerhq.hu/MPlayer/skins/ \ 14 http://www2.mplayerhq.hu/MPlayer/skins/ \
@@ -94,27 +94,27 @@ SKINS+= Abyss-1.7${SKIN_EXTRACT_SUFX}  @@ -94,27 +94,27 @@ SKINS+= Abyss-1.7${SKIN_EXTRACT_SUFX}
94 xine-lcd-1.2${SKIN_EXTRACT_SUFX} \ 94 xine-lcd-1.2${SKIN_EXTRACT_SUFX} \
95 xmmplayer-1.5${SKIN_EXTRACT_SUFX} 95 xmmplayer-1.5${SKIN_EXTRACT_SUFX}
96 96
97.for skin in ${SKINS} 97.for skin in ${SKINS}
98SITES.${skin}= ${SKIN_SITES} 98SITES.${skin}= ${SKIN_SITES}
99.endfor 99.endfor
100 100
101DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} 101DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
102DISTFILES+= ${SKINS} 102DISTFILES+= ${SKINS}
103DISTINFO_FILE= ${.CURDIR}/distinfo 103DISTINFO_FILE= ${.CURDIR}/distinfo
104DIST_SUBDIR= mplayer 104DIST_SUBDIR= mplayer
105 105
106USE_TOOLS+= pax pkg-config 106USE_TOOLS+= pax pkg-config
107CONFIGURE_ARGS+= --enable-gui --disable-mencoder \ 107CONFIGURE_ARGS+= --enable-gui --enable-x11 --disable-mencoder \
108 --confdir=${PREFIX}/share/mplayer 108 --confdir=${PREFIX}/share/mplayer
109CONFIGURE_ARGS+= --enable-xvmc 109CONFIGURE_ARGS+= --enable-xvmc
110 110
111INSTALLATION_DIRS= bin share/mplayer/skins 111INSTALLATION_DIRS= bin share/mplayer/skins
112 112
113do-install: 113do-install:
114 ${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${DESTDIR}${PREFIX}/bin/gmplayer 114 ${INSTALL_PROGRAM} ${WRKSRC}/mplayer ${DESTDIR}${PREFIX}/bin/gmplayer
115.for skin in ${SKINS} 115.for skin in ${SKINS}
116 ( cd ${WRKDIR} && \ 116 ( cd ${WRKDIR} && \
117 ${PAX} -rw ${skin:C/-[0-9.]+${SKIN_EXTRACT_SUFX}//} \ 117 ${PAX} -rw ${skin:C/-[0-9.]+${SKIN_EXTRACT_SUFX}//} \
118 ${DESTDIR}${PREFIX}/share/mplayer/skins \ 118 ${DESTDIR}${PREFIX}/share/mplayer/skins \
119 ) 119 )
120.endfor 120.endfor