1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

Update to version 2.6

PR:		ports/76540
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2005-01-21 19:15:33 +00:00
parent 6f1f89f7e0
commit dbab6ba14f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127047
3 changed files with 25 additions and 56 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= gkrellmss
PORTVERSION= 2.3
PORTREVISION= 3
PORTVERSION= 2.6
CATEGORIES= audio
MASTER_SITES= http://web.wt.net/~billw/gkrellmss/
@ -15,31 +14,40 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A plugin for GKrellM with a VU meter showing left/right channel audio
BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
LIB_DEPENDS= gdk_pixbuf_xlib.2:${PORTSDIR}/graphics/gdk-pixbuf
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
LIB_DEPENDS= fftw3.3:${PORTSDIR}/math/fftw3
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2
LATEST_LINK= gkrellmss2
USE_X_PREFIX= yes
USE_GNOME= esound gtk20
USE_GCC= 3.4
USE_REINPLACE= yes
USE_GMAKE= yes
USE_GNOMENG= yes
USE_GNOME= esound imlib
USE_XPM= yes
MAKE_ENV= LOCALEDIR="${PREFIX}/share/locale"
PORTDOCS= Changelog README Themes
PLIST_FILES= libexec/gkrellm2/plugins/gkrellmss.so
PLIST_FILES= libexec/gkrellm2/plugins/gkrellmss.so \
share/locale/ru/LC_MESSAGES/gkrellm-gkrellmss.mo
MAKE_ENV+= PLUGIN_INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
LOCALEDIR=${PREFIX}/share/locale \
FFTW_LIB_DIR=-L${LOCALBASE}/lib \
enable_nls=1
post-patch:
@${REINPLACE_CMD} -e 's|= -O2|=|g ; \
s|= gcc|+=|g' ${WRKSRC}/src/Makefile
post-install:
do-configure:
@${ECHO_CMD} "" > ${WRKSRC}/src/configure.h
@${ECHO_CMD} "#define HAVE_ESOUND 1" >> ${WRKSRC}/src/configure.h
@${ECHO_CMD} "#define HAVE_FFTW3 1" >> ${WRKSRC}/src/configure.h
do-install:
${INSTALL_DATA} ${WRKSRC}/src/gkrellmss.so \
${PREFIX}/libexec/gkrellm2/plugins/gkrellmss.so
${INSTALL_DATA} ${WRKSRC}/po/ru.mo \
${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellm-gkrellmss.mo
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

View File

@ -1,2 +1,2 @@
MD5 (gkrellmss-2.3.tar.gz) = 457a85c28f049ef0787c842b5494ece0
SIZE (gkrellmss-2.3.tar.gz) = 24398
MD5 (gkrellmss-2.6.tar.gz) = 67284260336bc5c4f313bd69c6c092f6
SIZE (gkrellmss-2.6.tar.gz) = 32082

View File

@ -1,39 +0,0 @@
--- src/Makefile.orig Sat Oct 26 20:48:59 2002
+++ src/Makefile Tue Feb 4 13:17:23 2003
@@ -10,15 +10,15 @@
SD_INCLUDE =
SD_LIB = -lasound
else
-SD_INCLUDE = `esd-config --cflags`
-SD_LIB = `esd-config --libs`
+SD_INCLUDE = `${ESD_CONFIG} --cflags`
+SD_LIB = `${ESD_CONFIG} --libs`
endif
FFTW_LIB_DIR ?=
FFTW_LIB = $(FFTW_LIB_DIR) -lrfftw -lfftw
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(SD_INCLUDE)
+FLAGS = -Wall -fPIC $(GTK_INCLUDE) $(SD_INCLUDE)
LIBS = $(GTK_LIB) $(SD_LIB) $(FFTW_LIB) -lm
ifeq ($(OS_NAME),Darwin)
@@ -42,7 +42,7 @@
FLAGS += -DGKRELLM_ALSA5
endif
-CC = gcc $(FLAGS) $(CFLAGS)
+CC += $(FLAGS) $(CFLAGS)
OBJS = gkrellmss.o oscope.o spectrum.o sdlib.o
@@ -56,7 +56,7 @@
install:
$(INSTALL) -d -m 755 $(INSTALLDIR)
- $(INSTALL) -c $(STRIP) -m 755 gkrellmss.so $(INSTALLDIR)
+ $(INSTALL) gkrellmss.so $(INSTALLDIR)
gkrellmss.o: gkrellmss.c gkrellmss.h
oscope.o: oscope.c gkrellmss.h