1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Simplify MASTER_SITES
- Use options helpers
- Remove patch for unsupported versions of FreeBSD
- Install locale data in proper location
- Bump PORTREVISION

PR:		189622 (based on)
Submitted by:	coder@tuxfamily.org (maintainer)
This commit is contained in:
Jason E. Hale 2014-07-02 13:36:23 +00:00
parent 777f0a3e49
commit 66f9b85ed5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360185
4 changed files with 66 additions and 89 deletions

View File

@ -3,10 +3,9 @@
PORTNAME= lingot PORTNAME= lingot
PORTVERSION= 0.9.1 PORTVERSION= 0.9.1
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITES= SAVANNAH
MASTER_SITE_SUBDIR=${PORTNAME}
MAINTAINER= coder@tuxfamily.org MAINTAINER= coder@tuxfamily.org
COMMENT= LINGOT is a musical instrument tuner COMMENT= LINGOT is a musical instrument tuner
@ -14,35 +13,23 @@ COMMENT= LINGOT is a musical instrument tuner
LICENSE= GPLv2 LICENSE= GPLv2
USE_GNOME= gtk20 libglade2 USE_GNOME= gtk20 libglade2
NO_STAGE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USES= gettext gmake pkgconfig USES= gettext gmake pkgconfig
CONFIGURE_ENV= DATADIRNAME="share"
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= JACK ALSA OPTIONS_DEFINE= DOCS
OPTIONS_GROUP= SOUND
OPTIONS_GROUP_SOUND= ALSA JACK
OPTIONS_DEFAULT= JACK OPTIONS_DEFAULT= JACK
.include <bsd.port.options.mk> ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
ALSA_CONFIGURE_ENABLE= alsa
.if ${PORT_OPTIONS:MJACK} JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack \
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack \ libsamplerate.so:${PORTSDIR}/audio/libsamplerate
libsamplerate.so:${PORTSDIR}/audio/libsamplerate JACK_CONFIGURE_ENABLE= jack
CONFIGURE_ARGS+=--enable-jack
.else
CONFIGURE_ARGS+=--disable-jack
.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
CONFIGURE_ARGS+=--enable-alsa
.else
CONFIGURE_ARGS+=--disable-alsa
.endif
.if ${OSVERSION} < 802502 || (${OSVERSION} > 900000 && ${OSVERSION} < 900027)
EXTRA_PATCHES+= ${FILESDIR}/extra-lingot-config-scale.h
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,14 +0,0 @@
--- src/lingot-config-scale.h.orig 2011-10-18 06:29:18.000000000 +0200
+++ src/lingot-config-scale.h 2011-10-18 06:30:42.000000000 +0200
@@ -23,6 +23,11 @@
#ifndef LINGOT_CONFIG_SCALE_H_
#define LINGOT_CONFIG_SCALE_H_
+/* FreeBSD patch for log2 */
+#ifdef __FreeBSD__
+#define log2(x) (log(x) / M_LN2)
+#endif /* __FreeBSD__ */
+
#include "lingot-defs.h"
typedef struct _LingotScale LingotScale;

View File

@ -0,0 +1,32 @@
--- ./Makefile.in.orig 2011-08-22 10:10:09.000000000 -0400
+++ ./Makefile.in 2014-06-18 23:12:35.000000000 -0400
@@ -291,21 +291,21 @@
lingotdocdir = ${docdir}
lingotdoc_DATA = \
README\
- COPYING\
AUTHORS\
ChangeLog\
INSTALL\
NEWS\
- TODO\
THANKS\
- MAINTAINERS\
- src/lingot-background.xpm\
- src/lingot-logo.xpm\
+ MAINTAINERS
+EXTRA_DIST = \
+ COPYING\
+ TODO\
intltool-extract.in\
intltool-merge.in\
- intltool-update.in
-
-EXTRA_DIST = $(lingotdoc_DATA)
+ intltool-update.in\
+ src/lingot-background.xpm\
+ src/lingot-logo.xpm\
+ $(lingotdoc_DATA)
CLEANFILES = \
intltool-extract\
intltool-merge\

View File

@ -1,54 +1,26 @@
bin/lingot bin/lingot
lib/locale/ca/LC_MESSAGES/lingot.mo
lib/locale/cs/LC_MESSAGES/lingot.mo
lib/locale/de/LC_MESSAGES/lingot.mo
lib/locale/es/LC_MESSAGES/lingot.mo
lib/locale/fr/LC_MESSAGES/lingot.mo
lib/locale/gl/LC_MESSAGES/lingot.mo
lib/locale/it/LC_MESSAGES/lingot.mo
lib/locale/pt_BR/LC_MESSAGES/lingot.mo
lib/locale/sv/LC_MESSAGES/lingot.mo
lib/locale/zh_CN/LC_MESSAGES/lingot.mo
share/applications/lingot.desktop share/applications/lingot.desktop
share/doc/lingot/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
share/doc/lingot/COPYING %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
share/doc/lingot/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/INSTALL
share/doc/lingot/INSTALL %%PORTDOCS%%%%DOCSDIR%%/MAINTAINERS
share/doc/lingot/MAINTAINERS %%PORTDOCS%%%%DOCSDIR%%/NEWS
share/doc/lingot/NEWS %%PORTDOCS%%%%DOCSDIR%%/README
share/doc/lingot/README %%PORTDOCS%%%%DOCSDIR%%/THANKS
share/doc/lingot/THANKS %%DATADIR%%/glade/lingot-config-dialog.glade
share/doc/lingot/TODO %%DATADIR%%/glade/lingot-mainframe.glade
share/doc/lingot/intltool-extract.in share/locale/ca/LC_MESSAGES/lingot.mo
share/doc/lingot/intltool-merge.in share/locale/cs/LC_MESSAGES/lingot.mo
share/doc/lingot/intltool-update.in share/locale/de/LC_MESSAGES/lingot.mo
share/doc/lingot/lingot-background.xpm share/locale/es/LC_MESSAGES/lingot.mo
share/doc/lingot/lingot-logo.xpm share/locale/fr/LC_MESSAGES/lingot.mo
share/lingot/glade/lingot-config-dialog.glade share/locale/gl/LC_MESSAGES/lingot.mo
share/lingot/glade/lingot-mainframe.glade share/locale/it/LC_MESSAGES/lingot.mo
share/locale/pt_BR/LC_MESSAGES/lingot.mo
share/locale/sv/LC_MESSAGES/lingot.mo
share/locale/zh_CN/LC_MESSAGES/lingot.mo
share/pixmaps/lingot/lingot-icon.svg share/pixmaps/lingot/lingot-icon.svg
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%/glade
@dirrm %%DATADIR%%
@dirrm share/pixmaps/lingot @dirrm share/pixmaps/lingot
@dirrm share/lingot/glade
@dirrm share/lingot
@dirrm share/doc/lingot
@dirrm lib/locale/zh_CN/LC_MESSAGES
@dirrm lib/locale/zh_CN
@dirrm lib/locale/sv/LC_MESSAGES
@dirrm lib/locale/sv
@dirrm lib/locale/pt_BR/LC_MESSAGES
@dirrm lib/locale/pt_BR
@dirrm lib/locale/it/LC_MESSAGES
@dirrm lib/locale/it
@dirrm lib/locale/gl/LC_MESSAGES
@dirrm lib/locale/gl
@dirrm lib/locale/fr/LC_MESSAGES
@dirrm lib/locale/fr
@dirrm lib/locale/es/LC_MESSAGES
@dirrm lib/locale/es
@dirrm lib/locale/de/LC_MESSAGES
@dirrm lib/locale/de
@dirrm lib/locale/cs/LC_MESSAGES
@dirrm lib/locale/cs
@dirrm lib/locale/ca/LC_MESSAGES
@dirrm lib/locale/ca
@dirrm lib/locale