From 497887b152a407b297ddab1021e51234dd082003 Mon Sep 17 00:00:00 2001 From: jylefort Date: Mon, 9 May 2005 20:22:21 +0000 Subject: Adplay is a command line AdLib player using the adplug library. It supports many AdLib formats such as HSP and HSC. WWW: http://adplug.sourceforge.net/ PR: ports/80727 Submitted by: Emanuel Haupt --- audio/adplay/Makefile | 44 ++++++++++++++++++++++++++++++++++ audio/adplay/distinfo | 2 ++ audio/adplay/files/patch-src_adplay.cc | 21 ++++++++++++++++ audio/adplay/pkg-descr | 7 ++++++ 4 files changed, 74 insertions(+) create mode 100644 audio/adplay/Makefile create mode 100644 audio/adplay/distinfo create mode 100644 audio/adplay/files/patch-src_adplay.cc create mode 100644 audio/adplay/pkg-descr (limited to 'audio/adplay') diff --git a/audio/adplay/Makefile b/audio/adplay/Makefile new file mode 100644 index 00000000000..d76a9b9a0d6 --- /dev/null +++ b/audio/adplay/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: adplay +# Date created: 10 August 2004 +# Whom: Emanuel Haupt +# +# $FreeBSD$ +# + +PORTNAME= adplay +PORTVERSION= 1.4 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} +MASTER_SITE_SUBDIR= adplug + +MAINTAINER= ehaupt@critical.ch +COMMENT= AdLib player using adplug library + +LIB_DEPENDS= adplug-1.5.0:${PORTSDIR}/audio/libadplug + +PLIST_FILES= bin/adplay + +GNU_CONFIGURE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +CONFIGURE_ENV= CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" + +MAN1= adplay.1 + +.include + +post-patch: +.if ${OSVERSION} > 500000 + ${RM} ${WRKSRC}/src/getopt.h +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/adplay ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${MANPREFIX}/man/man1 + +.include diff --git a/audio/adplay/distinfo b/audio/adplay/distinfo new file mode 100644 index 00000000000..2574d396636 --- /dev/null +++ b/audio/adplay/distinfo @@ -0,0 +1,2 @@ +MD5 (adplay-1.4.tar.gz) = 1fbb6ccbc3f559cbec8768e2554a1d59 +SIZE (adplay-1.4.tar.gz) = 338761 diff --git a/audio/adplay/files/patch-src_adplay.cc b/audio/adplay/files/patch-src_adplay.cc new file mode 100644 index 00000000000..600fdf958a8 --- /dev/null +++ b/audio/adplay/files/patch-src_adplay.cc @@ -0,0 +1,21 @@ +--- src/adplay.cc.orig Fri May 6 19:23:17 2005 ++++ src/adplay.cc Fri May 6 19:23:24 2005 +@@ -25,16 +25,15 @@ + #include + #include + #include ++#include + + /* +- * Apple (OS X) and Sun systems declare getopt in unistd.h, other systems +- * (Linux) use getopt.h. +- */ + #if defined ( __APPLE__ ) || ( defined (__SVR4) && defined (__sun) ) + # include + #else + # include "getopt.h" + #endif ++*/ + + #include "defines.h" + #include "output.h" diff --git a/audio/adplay/pkg-descr b/audio/adplay/pkg-descr new file mode 100644 index 00000000000..03298633b9d --- /dev/null +++ b/audio/adplay/pkg-descr @@ -0,0 +1,7 @@ +Adplay is a command line AdLib player using the adplug library. It supports +many AdLib formats such as HSP and HSC. + +WWW: http://adplug.sourceforge.net/ + +- ehaupt +ehaupt@critical.ch -- cgit