mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
b760897dde
Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D10845
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xtheater
|
|
PORTVERSION= 1.0.0.p1
|
|
PORTREVISION= 14
|
|
PORTEPOCH= 1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/${PORTNAME}/Xtheater/1.0.0-pre1
|
|
DISTNAME= Xtheater-${PORTVERSION:S/.p/-pre/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= MPEG-1 player in GTK+ capable of playing MPEG-1 format streams
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libsmpeg.so:multimedia/smpeg
|
|
|
|
USE_SDL= sdl
|
|
USE_GNOME= gtk12
|
|
USE_GL= yes
|
|
USES= gmake libtool tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-gl
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|[(]prefix[)]/Xtheater|(libdir)/Xtheater|g ; \
|
|
s|-release.*$$|-module -avoid-version|g'
|
|
@${REINPLACE_CMD} -e 's|PREFIX/Xtheater|PREFIX/lib/Xtheater|g' \
|
|
${WRKSRC}/Xtheater.conf
|
|
.for file in plugins/player/smpeg/glscreen.c plugins/player/wm/glscreen.c
|
|
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/Xtheater/*/*.so
|
|
|
|
.include <bsd.port.mk>
|