diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-06-16 11:23:39 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-06-16 11:23:39 +0000 |
commit | 0d6e593fd0c967e276dcadfd1d7c364c5f2c3c21 (patch) | |
tree | ce0128186888eadf54b079db82c988fe409f8052 /multimedia/nxtvepg | |
parent | c37da529912b06a730d54d7ca463bc01b78cd30c (diff) | |
download | ports-0d6e593fd0c967e276dcadfd1d7c364c5f2c3c21.tar.gz ports-0d6e593fd0c967e276dcadfd1d7c364c5f2c3c21.zip |
Notes
Diffstat (limited to 'multimedia/nxtvepg')
-rw-r--r-- | multimedia/nxtvepg/Makefile | 26 | ||||
-rw-r--r-- | multimedia/nxtvepg/files/patch-Makefile.bsd | 38 | ||||
-rw-r--r-- | multimedia/nxtvepg/pkg-plist | 2 |
3 files changed, 26 insertions, 40 deletions
diff --git a/multimedia/nxtvepg/Makefile b/multimedia/nxtvepg/Makefile index 8cde7e12abda..f3c0bea8b512 100644 --- a/multimedia/nxtvepg/Makefile +++ b/multimedia/nxtvepg/Makefile @@ -9,33 +9,23 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Viewer for Nextview Electronic TV Programme Guide (needs bktr driver) -LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 - NOT_FOR_ARCHS= sparc64 -USES= gmake +USES= gmake tk:84 USE_XORG= x11 xmu +MAKE_ARGS= ROOT=${STAGEDIR} MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} WRKSRC=${WRKSRC} X11BASE=${LOCALBASE} -MAN1= nxtvepg.1 nxtvepgd.1 -MYPORTDOCS= README TODO CHANGES manual.html +OPTIONS_DEFINE= DOCS -NO_STAGE= yes post-patch: - ${REINPLACE_CMD} -e "s,machine/ioctl_bt848.h,dev/bktr/ioctl_bt848.h,; \ + @${REINPLACE_CMD} -e "s,machine/ioctl_bt848.h,dev/bktr/ioctl_bt848.h,; \ s,machine/ioctl_meteor.h,dev/bktr/ioctl_meteor.h," \ ${WRKSRC}/epgvbi/btdrv4linux.c ${WRKSRC}/tvsim/tvsim_main.c + @${REINPLACE_CMD} 's|wait.h|sys/&|' ${WRKSRC}/epgdb/ttxgrab.c post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/nxtvepg ${LOCALBASE}/bin - ${INSTALL_DATA} ${WRKSRC}/Nxtvepg.ad ${LOCALBASE}/lib/X11/app-defaults/Nxtvepg - ${INSTALL_MAN} ${WRKSRC}/nxtvepg.1 ${LOCALBASE}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/nxtvepgd.1 ${LOCALBASE}/man/man1 - -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${MYPORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} README TODO CHANGES manual.html \ + ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> diff --git a/multimedia/nxtvepg/files/patch-Makefile.bsd b/multimedia/nxtvepg/files/patch-Makefile.bsd index 6b92722d9b9f..a2470d129ed3 100644 --- a/multimedia/nxtvepg/files/patch-Makefile.bsd +++ b/multimedia/nxtvepg/files/patch-Makefile.bsd @@ -1,37 +1,31 @@ ---- Makefile.bsd.orig 2005-01-01 16:35:26.000000000 -0200 -+++ Makefile.bsd 2009-10-21 22:28:33.000000000 -0200 -@@ -69,15 +69,10 @@ - ECHO ?= @echo - - # Paths --ROOT = +--- Makefile.bsd.orig 2005-01-01 19:35:26.000000000 +0100 ++++ Makefile.bsd 2014-06-16 12:41:56.046094882 +0200 +@@ -73,11 +73,7 @@ exec_prefix = ${prefix} --bindir = $(ROOT)${exec_prefix}/bin --mandir = $(ROOT)${prefix}/man/man1 + bindir = $(ROOT)${exec_prefix}/bin + mandir = $(ROOT)${prefix}/man/man1 -ifeq ($(OS), FreeBSD) -resdir = $(ROOT)/usr/X11R6/lib/X11 -else -+bindir = ${exec_prefix}/bin -+mandir = ${prefix}/man/man1 - resdir = $(LOCALBASE)/lib/X11 +-resdir = $(LOCALBASE)/lib/X11 -endif ++resdir = $(ROOT)${prefix}/lib/X11 # other settings OPTFLAGS = -O -pipe -g -@@ -117,7 +112,7 @@ +@@ -96,7 +92,7 @@ + DEFS += -DTK_LIBRARY_PATH=\"$(TK_LIBRARY_PATH)\" + DEFS += -DTCL_LIBRARY_PATH=\"$(TCL_LIBRARY_PATH)\" - ifndef USER_DBDIR - DEFS += -DEPG_DB_DIR=\"$(SYS_DBDIR)\" --INST_DB_DIR = $(ROOT)$(SYS_DBDIR) -+INST_DB_DIR = $(SYS_DBDIR) - INST_DB_PERM = 0777 - endif +-DEFS += -DX11_APP_DEFAULTS=\"$(resdir)/app-defaults/Nxtvepg\" ++DEFS += -DX11_APP_DEFAULTS=\"$(LOCALBASE)/lib/X11/app-defaults/Nxtvepg\" -@@ -128,7 +123,7 @@ - CFLAGS += $(WARN) $(INCS) $(DEFS) + # enable use of multi-threading + ifdef WANT_THREADS +@@ -129,6 +125,7 @@ LDFLAGS += -lm #LDFLAGS += -pg -- + +BUILD_DIR= ${WRKSRC} all :: printconfig diff --git a/multimedia/nxtvepg/pkg-plist b/multimedia/nxtvepg/pkg-plist index 999e68e3ef4a..a53e7f56b888 100644 --- a/multimedia/nxtvepg/pkg-plist +++ b/multimedia/nxtvepg/pkg-plist @@ -1,6 +1,8 @@ bin/nxtvepg bin/nxtvepgd lib/X11/app-defaults/Nxtvepg +man/man1/nxtvepg.1.gz +man/man1/nxtvepgd.1.gz %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/TODO %%PORTDOCS%%%%DOCSDIR%%/CHANGES |