Lines 1-15
Link Here
|
1 |
# New ports collection makefile for: gkrellm-helium |
1 |
# Created by: Pav Lucistnik <pav@oook.cz> |
2 |
# Date Created: 19 Apr 2003 |
|
|
3 |
# Whom: Pav Lucistnik <pav@oook.cz> |
4 |
# |
5 |
# $FreeBSD: head/misc/gkrellm-helium/Makefile 322783 2013-07-11 16:26:26Z sunpoet $ |
2 |
# $FreeBSD: head/misc/gkrellm-helium/Makefile 322783 2013-07-11 16:26:26Z sunpoet $ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= gkrellm-helium |
4 |
PORTNAME= gkrellm-helium |
9 |
PORTVERSION= 2.3.1 |
5 |
PORTVERSION= 2.3.1 |
10 |
PORTREVISION= 11 |
6 |
PORTREVISION= 12 |
11 |
CATEGORIES= misc |
7 |
CATEGORIES= misc |
12 |
MASTER_SITES= http://makovick.googlepages.com/ |
8 |
MASTER_SITES= https://sites.google.com/site/makovick/projects/ |
13 |
EXTRACT_SUFX= .tgz |
9 |
EXTRACT_SUFX= .tgz |
14 |
|
10 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
Lines 19-33
Link Here
|
19 |
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl |
15 |
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl |
20 |
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 |
16 |
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 |
21 |
|
17 |
|
22 |
PLIST_FILES= libexec/gkrellm2/plugins/helium.so |
18 |
FETCH_ARGS= -Fpr |
23 |
|
19 |
|
24 |
CFLAGS+= -fPIC -I${LOCALBASE}/include |
20 |
PLIST_FILES= libexec/gkrellm2/plugins/helium.so |
25 |
MAKE_ARGS= CFLAGS="${CFLAGS}" |
|
|
26 |
|
21 |
|
27 |
post-patch: |
22 |
post-patch: |
28 |
@${REINPLACE_CMD} -e 's|/usr/local/lib/gkrellm2/plugins|${PREFIX}/libexec/gkrellm2/plugins| ; \ |
23 |
@${REINPLACE_CMD} -e \ |
29 |
s|CFLAGS =|CFLAGS?=| ; s|-lcurl|-lcurl -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile |
24 |
's|/usr/local/lib/gkrellm2|${PREFIX}/libexec/gkrellm2| ; \ |
30 |
@${REINPLACE_CMD} -e 's|ulong|u_long|' ${WRKSRC}/*.c |
25 |
/^CFLAGS/s| =.*| += -fPIC `pkg-config libcurl --cflags`| ; \ |
31 |
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/http_net.c |
26 |
s|gcc |$$(CC) | ; \ |
|
|
27 |
s|-lcurl|`pkg-config libcurl --libs`|' ${WRKSRC}/Makefile |
28 |
@${REINPLACE_CMD} -e \ |
29 |
's|ulong|u_long|' ${WRKSRC}/*.c |
30 |
@${REINPLACE_CMD} -e \ |
31 |
'/<curl\/types.h>/d' ${WRKSRC}/http_net.c |
32 |
|
32 |
|
33 |
.include <bsd.port.mk> |
33 |
.include <bsd.port.mk> |