mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Support CC properly
- Add LICENSE - Stage support PR: 185346 Submitted by: ports fury
This commit is contained in:
parent
71dda2f680
commit
1f4c82af32
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341046
@ -6,23 +6,33 @@ PORTVERSION= 2.0.0
|
||||
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>
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user