Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2013 05:47:31 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185346: graphics/gkrellkam2: Support CC properly
Message-ID:  <20131231054731.3f9d9031e778b5e4db817962@yahoo.com>
Resent-Message-ID: <201312302110.rBULABZZ098928@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185346
>Category:       ports
>Synopsis:       graphics/gkrellkam2: Support CC properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 21:10:11 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC properly
- Add LICENSE

Remove file:
files/patch-aa

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/gkrellkam2/Makefile graphics/gkrellkam2/Makefile
--- /usr/ports/graphics/gkrellkam2/Makefile	2013-11-06 22:01:38.000000000 +0900
+++ graphics/gkrellkam2/Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -6,23 +6,33 @@
 PORTREVISION=	12
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}2/${PORTVERSION}
+PKGNAMESUFFIX=	2
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GKrellM plugin that display thumbnails of periodically updated images
 
-BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
-RUN_DEPENDS=	gkrellm:${PORTSDIR}/sysutils/gkrellm2
+LICENSE=	GPLv2 # (or later)
+
+BUILD_DEPENDS=	gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2
+RUN_DEPENDS=	gkrellm2>0:${PORTSDIR}/sysutils/gkrellm2
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
 USES=		gmake pkgconfig
-LATEST_LINK=	gkrellkam2
 
-MAN5=		gkrellkam-list.5
-PLIST_FILES=	libexec/gkrellm2/plugins/gkrellkam2.so
+PLIST_FILES=	libexec/gkrellm2/plugins/gkrellkam2.so \
+		man/man5/gkrellkam-list.5.gz
 
-MAKE_ENV+=	MKDIR="${MKDIR}" \
-		INSTALL_DATA="${INSTALL_DATA}"
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|gcc|$$(CC)|' ${WRKSRC}/Makefile
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
+	(cd ${WRKSRC} && ${INSTALL_LIB} gkrellkam2.so \
+		${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins)
+	(cd ${WRKSRC} && ${INSTALL_MAN} gkrellkam-list.5 \
+		${STAGEDIR}${MAN5PREFIX}/man/man5)
 
-NO_STAGE=	yes
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/gkrellkam2/files/patch-aa graphics/gkrellkam2/files/patch-aa
--- /usr/ports/graphics/gkrellkam2/files/patch-aa	2013-11-06 22:01:38.000000000 +0900
+++ graphics/gkrellkam2/files/patch-aa	1970-01-01 09:00:00.000000000 +0900
@@ -1,37 +0,0 @@
---- Makefile.orig	Sun Nov 24 04:21:27 2002
-+++ Makefile	Sun Nov 24 04:24:30 2002
-@@ -9,17 +9,14 @@
- # To facilitate packaging- leave blank for normal installation
- DESTDIR =
- 
--# This should point to the GKrellM headers
--GKRELLM_HDRS = /usr/include
--
- CC := gcc
- GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
--CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) -I$(GKRELLM_HDRS)
-+CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS)
- LDFLAGS := -shared -Wl
--INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins
-+INST_DIR=${PREFIX}/libexec/gkrellm2/plugins
- USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm2/plugins
- MANPAGES := gkrellkam-list.5
--MANPAGE_DIR := $(DESTDIR)/usr/share/man/man5
-+MANPAGE_DIR=${PREFIX}/man/man5
- 
- .PHONY: clean install
- 
-@@ -32,9 +29,10 @@
- 	-rm -f $(TARGET).so $(TARGET).o
- 
- install:
--	mkdir -p $(INST_DIR)
--	cp -f $(TARGET).so $(INST_DIR)
--	cp -f $(MANPAGES) $(MANPAGE_DIR)
-+	${MKDIR} ${INST_DIR}
-+	${INSTALL_DATA} ${TARGET}.so ${INST_DIR}
-+	${MKDIR} ${MANPAGE_DIR}
-+	${INSTALL_DATA} ${MANPAGES} ${MANPAGE_DIR}
- 
- userinstall:
- 	mkdir -p $(USER_INST_DIR)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131231054731.3f9d9031e778b5e4db817962>