summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-05-31 21:35:41 +0000
committerflz <flz@FreeBSD.org>2005-05-31 21:35:41 +0000
commitd91dd9372d41d7bdefc08976846396d9416d5696 (patch)
tree614d4835b429faa1898adac4743137c901d5c184 /multimedia
parentd3cdb4a1ee63a332869a62744460f72668faca4d (diff)
downloadFreeBSD-ports-d91dd9372d41d7bdefc08976846396d9416d5696.zip
FreeBSD-ports-d91dd9372d41d7bdefc08976846396d9416d5696.tar.gz
- Fix DISTNAME.
- Remove pkg-plist in favor of PLIST_FILES. - Global cleaning of the port. PR: ports/81727 Submitted by: Ports Fury
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/oqtplayer/Makefile27
-rw-r--r--multimedia/oqtplayer/distinfo4
-rw-r--r--multimedia/oqtplayer/files/patch-Makefile11
-rw-r--r--multimedia/oqtplayer/pkg-plist3
4 files changed, 21 insertions, 24 deletions
diff --git a/multimedia/oqtplayer/Makefile b/multimedia/oqtplayer/Makefile
index 716d52d..c7e4e22 100644
--- a/multimedia/oqtplayer/Makefile
+++ b/multimedia/oqtplayer/Makefile
@@ -11,25 +11,36 @@ PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openquicktime
-DISTNAME= ${PORTNAME:L}-${PORTVERSION}
+DISTNAME= ${PORTNAME:L}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A very very small, not functionnal, video OpenQuicktime (TM) player
-LIB_DEPENDS= openquicktime.0:${PORTSDIR}/multimedia/openquicktime
+LIB_DEPENDS= openquicktime.0:${PORTSDIR}/multimedia/openquicktime
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_SDL= sdl
-MAKE_ENV= SDL_CONFIG=${SDL_CONFIG}
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_REINPLACE= yes
+MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+PLIST_FILES= bin/oqtplayer
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= readme
+.endif
-CFLAGS+= -I${LOCALBASE}/include
+post-patch:
+ @${REINPLACE_CMD} -e 's|gcc -g|${CC}|g ; \
+ s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
do-install:
-.ifndef(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/oqtplayer ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
.endif
- @${INSTALL_PROGRAM} ${WRKSRC}/oqtplayer ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/multimedia/oqtplayer/distinfo b/multimedia/oqtplayer/distinfo
index 9bce888..0b9e5ee 100644
--- a/multimedia/oqtplayer/distinfo
+++ b/multimedia/oqtplayer/distinfo
@@ -1,2 +1,2 @@
-MD5 (oqtplayer-0.5.tgz) = 692f5a43e3f7a7819f65bd9f92f3d858
-SIZE (oqtplayer-0.5.tgz) = 8953
+MD5 (oqtplayer-0.5-src.tgz) = 692f5a43e3f7a7819f65bd9f92f3d858
+SIZE (oqtplayer-0.5-src.tgz) = 8953
diff --git a/multimedia/oqtplayer/files/patch-Makefile b/multimedia/oqtplayer/files/patch-Makefile
deleted file mode 100644
index 3e0305b..0000000
--- a/multimedia/oqtplayer/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig Mon Sep 24 19:43:59 2001
-+++ Makefile Mon Sep 24 19:45:20 2001
-@@ -2,7 +2,7 @@
- all: oqtplayer
-
- oqtplayer: oqtplayer.c
-- gcc -g -o oqtplayer oqtplayer.c -lopenquicktime `sdl-config --cflags` `sdl-config --libs` $(CFLAGS) $(LDFLAGS)
-+ $(CC) -o oqtplayer oqtplayer.c -lopenquicktime `$(SDL_CONFIG) --cflags` `$(SDL_CONFIG) --libs` $(CFLAGS) $(LDFLAGS)
-
- clean:
- rm -f *~
diff --git a/multimedia/oqtplayer/pkg-plist b/multimedia/oqtplayer/pkg-plist
deleted file mode 100644
index 36ae4b8..0000000
--- a/multimedia/oqtplayer/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/oqtplayer
-%%PORTDOCS%%share/doc/OQTPlayer/readme
-%%PORTDOCS%%@dirrm share/doc/OQTPlayer
OpenPOWER on IntegriCloud