pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio audio/oss*: convert to Makefile.common
details: https://anonhg.NetBSD.org/pkgsrc/rev/0babe16897b1
branches: trunk
changeset: 452369:0babe16897b1
user: nia <nia%pkgsrc.org@localhost>
date: Sun May 09 08:38:20 2021 +0000
description:
audio/oss*: convert to Makefile.common
diffstat:
audio/ossinfo/Makefile | 45 ++------------------------------------
audio/ossinfo/Makefile.common | 50 +++++++++++++++++++++++++++++++++++++++++++
audio/ossmix/Makefile | 45 ++------------------------------------
audio/osstest/Makefile | 45 ++------------------------------------
audio/ossxmix/Makefile | 48 ++++++-----------------------------------
5 files changed, 66 insertions(+), 167 deletions(-)
diffs (292 lines):
diff -r db5470babdaf -r 0babe16897b1 audio/ossinfo/Makefile
--- a/audio/ossinfo/Makefile Sun May 09 08:31:18 2021 +0000
+++ b/audio/ossinfo/Makefile Sun May 09 08:38:20 2021 +0000
@@ -1,50 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2021/05/09 08:27:21 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/09 08:38:20 nia Exp $
-DISTNAME= oss-v4.2-build2019-src-bsd
+.include "Makefile.common"
+
PKGNAME= ossinfo-${DISTNAME:S/oss-v//1:S/-src-bsd//1:S/-/./g}
CATEGORIES= audio
-MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
-EXTRACT_SUFX= .tar.bz2
MAINTAINER= nia%NetBSD.org@localhost
-HOMEPAGE= http://www.opensound.com/
COMMENT= Display OSSv4 device information
-LICENSE= 2-clause-bsd
-
-BUILD_DIRS= cmd/${PKGBASE}
-
-# NOTE: Linux support will require an OSSv4 package integrated into
-# oss.buildlink3.mk
-ONLY_FOR_PLATFORM+= FreeBSD-*-*
-ONLY_FOR_PLATFORM+= NetBSD-*-*
-ONLY_FOR_PLATFORM+= SunOS-*-*
-
-.include "../../mk/oss.buildlink3.mk"
-
-LDFLAGS+= ${LIBOSSAUDIO}
-
-.if ${OPSYS} == "NetBSD" && \
- (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
-PKG_SKIP_REASON+= "Requires OSSv4 support"
-.endif
-
-SUBST_CLASSES+= paths
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= cmd/${PKGBASE}/${PKGBASE}.man
-SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
-
-INSTALLATION_DIRS+= bin
-INSTALLATION_DIRS+= share/doc/${PKGBASE}
-
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE} \
- ${DESTDIR}${PREFIX}/bin/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/COPYING \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/COPYING
- ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE}.man \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/${PKGBASE}.man
.include "../../mk/bsd.pkg.mk"
diff -r db5470babdaf -r 0babe16897b1 audio/ossinfo/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossinfo/Makefile.common Sun May 09 08:38:20 2021 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile.common,v 1.1 2021/05/09 08:38:20 nia Exp $
+# Common Makefile logic for commands included with the OSSv4 distribution.
+
+# used by audio/ossinfo/Makefile
+# used by audio/ossmix/Makefile
+# used by audio/osstest/Makefile
+# used by audio/ossxmix/Makefile
+
+DISTNAME= oss-v4.2-build2019-src-bsd
+MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
+EXTRACT_SUFX= .tar.bz2
+
+HOMEPAGE= http://www.opensound.com/
+LICENSE= 2-clause-bsd
+
+BUILD_DIRS= cmd/${PKGBASE}
+
+# NOTE: Linux support will require an OSSv4 package integrated into
+# oss.buildlink3.mk
+ONLY_FOR_PLATFORM+= FreeBSD-*-*
+ONLY_FOR_PLATFORM+= NetBSD-*-*
+ONLY_FOR_PLATFORM+= SunOS-*-*
+
+.include "../../mk/oss.buildlink3.mk"
+
+LDFLAGS+= ${LIBOSSAUDIO}
+
+.if ${OPSYS} == "NetBSD" && \
+ (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
+PKG_SKIP_REASON+= "Requires OSSv4 support"
+.endif
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= cmd/${PKGBASE}/${PKGBASE}.man
+SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+
+pre-build:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE} \
+ ${DESTDIR}${PREFIX}/bin/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/COPYING
+ ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE}.man \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/${PKGBASE}.man
diff -r db5470babdaf -r 0babe16897b1 audio/ossmix/Makefile
--- a/audio/ossmix/Makefile Sun May 09 08:31:18 2021 +0000
+++ b/audio/ossmix/Makefile Sun May 09 08:38:20 2021 +0000
@@ -1,50 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2021/05/09 08:02:03 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/09 08:38:20 nia Exp $
-DISTNAME= oss-v4.2-build2019-src-bsd
+.include "../../audio/ossinfo/Makefile.common"
+
PKGNAME= ossmix-${DISTNAME:S/oss-v//1:S/-src-bsd//1:S/-/./g}
CATEGORIES= audio
-MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
-EXTRACT_SUFX= .tar.bz2
MAINTAINER= nia%NetBSD.org@localhost
-HOMEPAGE= http://www.opensound.com/
COMMENT= Command line mixer from OSSv4
-LICENSE= 2-clause-bsd
-
-BUILD_DIRS= cmd/${PKGBASE}
-
-# NOTE: Linux support will require an OSSv4 package integrated into
-# oss.buildlink3.mk
-ONLY_FOR_PLATFORM+= FreeBSD-*-*
-ONLY_FOR_PLATFORM+= NetBSD-*-*
-ONLY_FOR_PLATFORM+= SunOS-*-*
-
-.include "../../mk/oss.buildlink3.mk"
-
-LDFLAGS+= ${LIBOSSAUDIO}
-
-.if ${OPSYS} == "NetBSD" && \
- (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
-PKG_SKIP_REASON+= "Requires OSSv4 support"
-.endif
-
-SUBST_CLASSES+= paths
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= cmd/${PKGBASE}/${PKGBASE}.man
-SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
-
-INSTALLATION_DIRS+= bin
-INSTALLATION_DIRS+= share/doc/${PKGBASE}
-
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE} \
- ${DESTDIR}${PREFIX}/bin/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/COPYING \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/COPYING
- ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE}.man \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/${PKGBASE}.man
.include "../../mk/bsd.pkg.mk"
diff -r db5470babdaf -r 0babe16897b1 audio/osstest/Makefile
--- a/audio/osstest/Makefile Sun May 09 08:31:18 2021 +0000
+++ b/audio/osstest/Makefile Sun May 09 08:38:20 2021 +0000
@@ -1,50 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2021/05/09 08:14:51 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/09 08:38:20 nia Exp $
-DISTNAME= oss-v4.2-build2019-src-bsd
+.include "../../audio/ossinfo/Makefile.common"
+
PKGNAME= osstest-${DISTNAME:S/oss-v//1:S/-src-bsd//1:S/-/./g}
CATEGORIES= audio
-MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
-EXTRACT_SUFX= .tar.bz2
MAINTAINER= nia%NetBSD.org@localhost
-HOMEPAGE= http://www.opensound.com/
COMMENT= Application for testing OSSv4 sound devices
-LICENSE= 2-clause-bsd
-
-BUILD_DIRS= cmd/${PKGBASE}
-
-# NOTE: Linux support will require an OSSv4 package integrated into
-# oss.buildlink3.mk
-ONLY_FOR_PLATFORM+= FreeBSD-*-*
-ONLY_FOR_PLATFORM+= NetBSD-*-*
-ONLY_FOR_PLATFORM+= SunOS-*-*
-
-.include "../../mk/oss.buildlink3.mk"
-
-LDFLAGS+= ${LIBOSSAUDIO}
-
-.if ${OPSYS} == "NetBSD" && \
- (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
-PKG_SKIP_REASON+= "Requires OSSv4 support"
-.endif
-
-SUBST_CLASSES+= paths
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= cmd/${PKGBASE}/${PKGBASE}.man
-SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
-
-INSTALLATION_DIRS+= bin
-INSTALLATION_DIRS+= share/doc/${PKGBASE}
-
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE} \
- ${DESTDIR}${PREFIX}/bin/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/COPYING \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/COPYING
- ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE}.man \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/${PKGBASE}.man
.include "../../mk/bsd.pkg.mk"
diff -r db5470babdaf -r 0babe16897b1 audio/ossxmix/Makefile
--- a/audio/ossxmix/Makefile Sun May 09 08:31:18 2021 +0000
+++ b/audio/ossxmix/Makefile Sun May 09 08:38:20 2021 +0000
@@ -1,56 +1,22 @@
-# $NetBSD: Makefile,v 1.1 2021/05/09 07:54:42 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/09 08:38:20 nia Exp $
-DISTNAME= oss-v4.2-build2019-src-bsd
+.include "../../audio/ossinfo/Makefile.common"
+
PKGNAME= ossxmix-${DISTNAME:S/oss-v//1:S/-src-bsd//1:S/-/./g}
CATEGORIES= audio
-MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
-EXTRACT_SUFX= .tar.bz2
MAINTAINER= nia%NetBSD.org@localhost
-HOMEPAGE= http://www.opensound.com/
COMMENT= Audio mixer GUI from OSSv4
-LICENSE= 2-clause-bsd
USE_TOOLS+= pkg-config
-BUILD_DIRS= cmd/ossxmix
-
-# NOTE: Linux support will require an OSSv4 package integrated into
-# oss.buildlink3.mk
-ONLY_FOR_PLATFORM+= FreeBSD-*-*
-ONLY_FOR_PLATFORM+= NetBSD-*-*
-ONLY_FOR_PLATFORM+= SunOS-*-*
-
-.include "../../mk/oss.buildlink3.mk"
-
-LDFLAGS+= ${LIBOSSAUDIO}
+INSTALLATION_DIRS+= share/applications
-.if ${OPSYS} == "NetBSD" && \
- (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
-PKG_SKIP_REASON+= "Requires OSSv4 support"
-.endif
-
-SUBST_CLASSES+= paths
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= cmd/${PKGBASE}/ossxmix.man
-SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
-
-INSTALLATION_DIRS+= bin
-INSTALLATION_DIRS+= share/applications
-INSTALLATION_DIRS+= share/doc/${PKGBASE}
-
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/ossxmix \
- ${DESTDIR}${PREFIX}/bin/ossxmix
+install-desktop-file: .PHONY
${INSTALL_DATA} ${FILESDIR}/ossxmix.desktop \
${DESTDIR}${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/COPYING \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/ossxmix.man \
- ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+do-install: install-desktop-file
.include "../../sysutils/desktop-file-utils/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index