From cb3962b38d35d8f8aab36b6399d04fac3fe455ba Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 4 Jan 2014 18:25:01 +0000 Subject: [PATCH] Support stage Allow packaging as a user Use options helpers --- audio/libumidi/Makefile | 21 +++++---------------- audio/libumidi/pkg-plist | 1 + 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/audio/libumidi/Makefile b/audio/libumidi/Makefile index 767ed4ec694c..cb55f1864e9b 100644 --- a/audio/libumidi/Makefile +++ b/audio/libumidi/Makefile @@ -10,28 +10,17 @@ MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \ MAINTAINER= hselasky@FreeBSD.org COMMENT= Universal general purpose MIDI library -LICENSE= BSD +LICENSE= BSD2CLAUSE USE_BZIP2= yes -NO_STAGE= yes -MAN3= umidi20.3 -MANCOMPRESSED= yes OPTIONS_DEFINE= DEBUG JACK OPTIONS_DEFAULT=JACK -.include - -MAKE_ARGS+=" PTHREAD_LIBS=${PTHREAD_LIBS}" - -.if ${PORT_OPTIONS:MJACK} -MAKE_ARGS+=" HAVE_JACK=YES" -LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack -.endif - -.if ${PORT_OPTIONS:MDEBUG} -MAKE_ARGS+=" HAVE_DEBUG=YES" -.endif +USES= uidfix +JACK_MAKE_ARGS= " HAVE_JACK=YES" +JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack +DEBUG_MAKE_ARGS= " HAVE_DEBUG=YES" MAKE_ARGS+=" HAVE_MAN=YES" .include diff --git a/audio/libumidi/pkg-plist b/audio/libumidi/pkg-plist index 92bf47fcb4d5..bf6aa5ab919a 100644 --- a/audio/libumidi/pkg-plist +++ b/audio/libumidi/pkg-plist @@ -2,3 +2,4 @@ include/umidi20.h lib/libumidi20.a lib/libumidi20.so lib/libumidi20.so.1 +man/man3/umidi20.3.gz