From 1657710323a1ba34659638a3d57630e02604eb37 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Tue, 2 Jan 2001 15:25:39 +0000 Subject: - Fix compilation error under XFree86 4.x - Add USE_GMAKE - Strip binary - Support NOPORTDOCS - Exclude GPL doc from package PR: 24007 Submitted by: MAINTAINER --- audio/fcplay/Makefile | 18 ++++++++++------- audio/fcplay/files/patch-ab | 10 +++++++++ audio/fcplay/files/patch-ac | 49 +++++++++++++++++++++++++++++++++++++++++++++ audio/fcplay/pkg-plist | 1 - 4 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 audio/fcplay/files/patch-ab create mode 100644 audio/fcplay/files/patch-ac (limited to 'audio/fcplay') diff --git a/audio/fcplay/Makefile b/audio/fcplay/Makefile index bbfa43663331..3c56e43d1c13 100644 --- a/audio/fcplay/Makefile +++ b/audio/fcplay/Makefile @@ -16,14 +16,18 @@ MAINTAINER= anders@fix.no BUILD_DEPENDS= ${LOCALBASE}/include/sidplay/compconf.h:${PORTSDIR}/audio/libsidplay -CXXFLAGS+= -I${PREFIX}/include -DHAVE_FREEBSD -DHAVE_MACHINE_SOUNDCARD_H +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +USE_GMAKE= yes GNU_CONFIGURE= yes -WRKSRC= ${WRKDIR}/fcplay-${PORTVERSION} +CXXFLAGS+= -I${LOCALBASE}/include -post-install: - ${INSTALL} -d -m 555 ${PREFIX}/share/doc/fcplay - @${INSTALL_DATA} ${WRKSRC}/ABOUT ${PREFIX}/share/doc/fcplay/ - @${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/fcplay/ - @${INSTALL_DATA} ${WRKSRC}/POINTER ${PREFIX}/share/doc/fcplay/ +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/fcplay ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/fcplay + ${INSTALL_DATA} ${WRKSRC}/ABOUT ${PREFIX}/share/doc/fcplay + ${INSTALL_DATA} ${WRKSRC}/POINTER ${PREFIX}/share/doc/fcplay +.endif .include diff --git a/audio/fcplay/files/patch-ab b/audio/fcplay/files/patch-ab new file mode 100644 index 000000000000..e79c210bbaa2 --- /dev/null +++ b/audio/fcplay/files/patch-ab @@ -0,0 +1,10 @@ +--- AudioDriver.h.orig Tue Mar 4 06:47:00 1997 ++++ AudioDriver.h Tue Dec 12 02:46:01 2000 +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include "Config.h" + + // These next includes were not required if libsidplay would not + // provide related HAVE_* definitions. diff --git a/audio/fcplay/files/patch-ac b/audio/fcplay/files/patch-ac new file mode 100644 index 000000000000..4f5069de86c4 --- /dev/null +++ b/audio/fcplay/files/patch-ac @@ -0,0 +1,49 @@ +--- configure.orig Thu May 28 04:08:00 1998 ++++ configure Tue Dec 12 02:51:01 2000 +@@ -1631,41 +1631,6 @@ + fi; + + +-# Extract the first word of "makedepend", so it can be a program name with args. +-set dummy makedepend; ac_word=$2 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:1638: checking for $ac_word" >&5 +-if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEP'+set}'`\" = set"; then +- echo $ac_n "(cached) $ac_c" 1>&6 +-else +- if test -n "$MAKEDEP"; then +- ac_cv_prog_MAKEDEP="$MAKEDEP" # Let the user override the test. +-else +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +- ac_dummy="$PATH" +- for ac_dir in $ac_dummy; do +- test -z "$ac_dir" && ac_dir=. +- if test -f $ac_dir/$ac_word; then +- ac_cv_prog_MAKEDEP="makedepend" +- break +- fi +- done +- IFS="$ac_save_ifs" +- test -z "$ac_cv_prog_MAKEDEP" && ac_cv_prog_MAKEDEP="nomakedep" +-fi +-fi +-MAKEDEP="$ac_cv_prog_MAKEDEP" +-if test -n "$MAKEDEP"; then +- echo "$ac_t""$MAKEDEP" 1>&6 +-else +- echo "$ac_t""no" 1>&6 +-fi +- +-if test "$MAKEDEP" = "nomakedep"; then +- { echo "configure: error: No ``makedepend'' found." 1>&2; exit 1; } +-fi; +- +- + # Extract the first word of "ranlib", so it can be a program name with args. + set dummy ranlib; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +@@ -2297,4 +2262,3 @@ + test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + + +-$MAKE depend diff --git a/audio/fcplay/pkg-plist b/audio/fcplay/pkg-plist index 79a808d02842..aa3d8dc26be3 100644 --- a/audio/fcplay/pkg-plist +++ b/audio/fcplay/pkg-plist @@ -1,5 +1,4 @@ bin/fcplay share/doc/fcplay/ABOUT -share/doc/fcplay/COPYING share/doc/fcplay/POINTER @dirrm share/doc/fcplay -- cgit v1.2.3