68 lines
1.5 KiB
Makefile
68 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.51 2011/09/16 12:29:16 espie Exp $
|
|
|
|
ONLY_FOR_ARCHS = alpha i386 powerpc sparc64 amd64
|
|
|
|
CATEGORIES = x11
|
|
|
|
COMMENT = DVD player
|
|
DISTNAME = ogle-0.9.2
|
|
REVISION = 14
|
|
SHARED_LIBS = dvdcontrol 11.0 \
|
|
msgevents 8.0
|
|
HOMEPAGE = http://www.dtek.chalmers.se/groups/dvd/
|
|
# Authors can be reached at dvd@dtek.chalmers.se
|
|
MASTER_SITES = ${HOMEPAGE}dist/
|
|
|
|
MAINTAINER = Marc Espie <espie@openbsd.org>
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
#FAKE=all
|
|
# GPL
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
WANTLIB += ICE SM X11 Xau Xdmcp Xext Xinerama Xv Xxf86vm a52 c
|
|
WANTLIB += dvdread jpeg m mad pthread-stubs sndio xcb xml2 z
|
|
|
|
MODULES = converters/libiconv
|
|
|
|
LIB_DEPENDS = audio/liba52 \
|
|
devel/libdvdread \
|
|
textproc/libxml>=2.4.19 \
|
|
graphics/jpeg \
|
|
audio/libmad
|
|
|
|
USE_GROFF = Yes
|
|
|
|
FLAVORS = altivec
|
|
FLAVOR ?=
|
|
|
|
USE_LIBTOOL = Yes
|
|
CONFIGURE_ARGS = --disable-oss --disable-sunaudio --enable-obsdaudio
|
|
|
|
.if ${FLAVOR:L} == "altivec"
|
|
ONLY_FOR_ARCHS = powerpc
|
|
CONFIGURE_ARGS += --enable-altivec
|
|
.else
|
|
CONFIGURE_ARGS += --disable-altivec
|
|
.endif
|
|
CONFIGURE_ARGS += --with-libjpeg=${DEPBASE} \
|
|
--with-dvdread=${DEPBASE} \
|
|
--with-liba52=${DEPBASE} \
|
|
--with-libmad=${DEPBASE} \
|
|
--with-xml-prefix=${DEPBASE}
|
|
|
|
CONFIGURE_ENV += xml_config_args=--prefix=${DEPBASE} \
|
|
LIBOGLEAO_LIBS="-lsndio"
|
|
|
|
post-install:
|
|
cd ${PREFIX}/lib && \
|
|
ln -sf ${TRUEPREFIX}/lib/ogle/libdvdcontrol.so.${LIBdvdcontrol_VERSION}
|
|
cd ${PREFIX}/lib && \
|
|
ln -sf ${TRUEPREFIX}/lib/ogle/libmsgevents.so.${LIBmsgevents_VERSION}
|
|
|
|
.include <bsd.port.mk>
|