Lines 2-16
Link Here
|
2 |
# $FreeBSD: head/misc/wmweather+/Makefile 306302 2012-10-23 09:23:15Z bapt $ |
2 |
# $FreeBSD: head/misc/wmweather+/Makefile 306302 2012-10-23 09:23:15Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= wmweather+ |
4 |
PORTNAME= wmweather+ |
5 |
PORTVERSION= 2.11 |
5 |
PORTVERSION= 2.13 |
6 |
PORTREVISION= 6 |
|
|
7 |
CATEGORIES= misc windowmaker geography |
6 |
CATEGORIES= misc windowmaker geography |
8 |
MASTER_SITES= SF/wmweatherplus/wmweather%2B/ |
7 |
MASTER_SITES= SF/wmweatherplus/wmweather%2B/ |
9 |
DISTNAME= wmweather%2B-${PORTVERSION} |
8 |
DISTNAME= wmweather%2B-${PORTVERSION} |
10 |
|
9 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= nemysis@gmx.ch |
12 |
COMMENT= Displays current conditions and forecasts with icons and text |
11 |
COMMENT= Displays current conditions and forecasts with icons and text |
13 |
|
12 |
|
|
|
13 |
LICENSE= GPLv2 |
14 |
|
14 |
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ |
15 |
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ |
15 |
pcre:${PORTSDIR}/devel/pcre \ |
16 |
pcre:${PORTSDIR}/devel/pcre \ |
16 |
tiff:${PORTSDIR}/graphics/tiff \ |
17 |
tiff:${PORTSDIR}/graphics/tiff \ |
Lines 19-24
Link Here
|
19 |
jpeg:${PORTSDIR}/graphics/jpeg \ |
20 |
jpeg:${PORTSDIR}/graphics/jpeg \ |
20 |
gif.5:${PORTSDIR}/graphics/giflib |
21 |
gif.5:${PORTSDIR}/graphics/giflib |
21 |
|
22 |
|
|
|
23 |
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION} |
24 |
|
22 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
23 |
USE_ICONV= yes |
26 |
USE_ICONV= yes |
24 |
USE_XORG= xpm |
27 |
USE_XORG= xpm |
Lines 29-36
Link Here
|
29 |
--with-xpm-includes=${LOCALBASE} \ |
32 |
--with-xpm-includes=${LOCALBASE} \ |
30 |
--with-xpm-libraries=${LOCALBASE} |
33 |
--with-xpm-libraries=${LOCALBASE} |
31 |
|
34 |
|
|
|
35 |
PORTDOCS= ChangeLog README |
36 |
|
37 |
SUB_FILES= pkg-message |
38 |
|
32 |
OPTIONS_DEFINE= WM EXAMPLES |
39 |
OPTIONS_DEFINE= WM EXAMPLES |
33 |
OPTIONS_DEFAULT= WM |
40 |
OPTIONS_DEFAULT= EXAMPLES |
34 |
WM_DESC= Depend on Window Maker port (otherwise only libwraster) |
41 |
WM_DESC= Depend on Window Maker port (otherwise only libwraster) |
35 |
|
42 |
|
36 |
MAN1= wmweather+.1 |
43 |
MAN1= wmweather+.1 |
Lines 39-83
Link Here
|
39 |
|
46 |
|
40 |
.include <bsd.port.options.mk> |
47 |
.include <bsd.port.options.mk> |
41 |
|
48 |
|
42 |
CFLAGS:= ${CFLAGS:C/-O[0-9]/-O0/} |
|
|
43 |
|
44 |
.if ${PORT_OPTIONS:MWM} |
49 |
.if ${PORT_OPTIONS:MWM} |
45 |
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker |
50 |
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker |
46 |
.else |
51 |
.else |
47 |
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster |
52 |
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster |
48 |
.endif |
53 |
.endif |
49 |
|
54 |
|
50 |
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION} |
|
|
51 |
|
52 |
post-patch: |
55 |
post-patch: |
53 |
@${CP} ${WRKSRC}/wmweather+.c ${WRKSRC}/wmweather+.c.dist |
56 |
@${REINPLACE_CMD} -e 's|void usage(int i) __THROW __attribute__ ((__noreturn__));|void usage(int i);|' \ |
54 |
@${SED} -e "s#^void usage(int i) __THROW.*#void usage(int i);#" \ |
57 |
${WRKSRC}/wmweather+.c |
55 |
${WRKSRC}/wmweather+.c.dist > ${WRKSRC}/wmweather+.c |
|
|
56 |
|
58 |
|
57 |
do-install: |
59 |
do-install: |
58 |
${INSTALL_PROGRAM} ${WRKSRC}/wmweather+ ${PREFIX}/bin |
60 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
59 |
${INSTALL_MAN} ${WRKSRC}/wmweather+.1 ${PREFIX}/man/man1 |
61 |
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 |
|
|
62 |
|
63 |
.if ${PORT_OPTIONS:MDOCS} |
64 |
${MKDIR} ${DOCSDIR} |
65 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
66 |
.endif |
67 |
|
60 |
.if ${PORT_OPTIONS:MEXAMPLES} |
68 |
.if ${PORT_OPTIONS:MEXAMPLES} |
61 |
${MKDIR} ${EXAMPLESDIR} |
69 |
${MKDIR} ${EXAMPLESDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR}/HINTS |
70 |
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR} |
63 |
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR}/example.conf |
71 |
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR} |
64 |
PLIST_FILES+= ${EXAMPLESDIR_REL}/HINTS |
72 |
PLIST_FILES+= ${EXAMPLESDIR_REL}/HINTS |
65 |
PLIST_FILES+= ${EXAMPLESDIR_REL}/example.conf |
73 |
PLIST_FILES+= ${EXAMPLESDIR_REL}/example.conf |
66 |
PLIST_DIRS+= ${EXAMPLESDIR_REL} |
74 |
PLIST_DIRS+= ${EXAMPLESDIR_REL} |
67 |
PM= ${WRKDIR}/pkg-message |
|
|
68 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
69 |
.endif |
75 |
.endif |
70 |
|
76 |
|
71 |
post-install: |
77 |
post-install: |
72 |
.if ${PORT_OPTIONS:MEXAMPLES} |
78 |
@${ECHO_CMD} |
73 |
@${ECHO} "===================================================" > ${PM} |
|
|
74 |
@${ECHO} "A sample configuration file has been copied to" >> ${PM} |
75 |
@${ECHO} "${EXAMPLESDIR}/example.conf" >> ${PM} |
76 |
@${ECHO} "" >> ${PM} |
77 |
@${ECHO} "Please copy it to ~/.wmweather+/conf and adjust it" >> ${PM} |
78 |
@${ECHO} "to your needs!" >> ${PM} |
79 |
@${ECHO} "===================================================" >> ${PM} |
80 |
@${CAT} ${PKGMESSAGE} |
79 |
@${CAT} ${PKGMESSAGE} |
81 |
.endif |
80 |
@${ECHO_CMD} |
82 |
|
81 |
|
83 |
.include <bsd.port.mk> |
82 |
.include <bsd.port.mk> |