Line 0
Link Here
|
|
|
1 |
# Created by: Stefan Hagen <sh@codevoid.de> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= sacc |
5 |
PORTVERSION= v1.00 |
6 |
CATEGORIES= net |
7 |
MASTER_SITES= ftp://bitreich.org/releases/sacc/ |
8 |
|
9 |
MAINTAINER= sh@codevoid.de |
10 |
COMMENT= Sacc(omys), simple console gopher client |
11 |
|
12 |
LICENSE= ISCL |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
15 |
RUN_DEPENDS= xdg-open:devel/xdg-utils |
16 |
|
17 |
OPTIONS_DEFINE= TXT RIFLE |
18 |
TXT_DESC= Use text UI instead of curses (not recommended) |
19 |
RIFLE_DESC= Use rifle instead of xdg-open (requires sysutils/py-ranger) |
20 |
|
21 |
USES=tar:tgz |
22 |
|
23 |
.include <bsd.port.options.mk> |
24 |
|
25 |
.if ${PORT_OPTIONS:MRIFLE} |
26 |
RUN_DEPENDS+= rifle:sysutils/py-ranger |
27 |
.endif |
28 |
|
29 |
post-patch-TXT-on: |
30 |
@${REINPLACE_CMD} -e 's/^UI=ti/#UI=ti/' ${WRKSRC}/config.mk |
31 |
@${REINPLACE_CMD} -e 's/^LIBS=-lcurses/#LIBS=-lcurses/' ${WRKSRC}/config.mk |
32 |
@${REINPLACE_CMD} -e 's/^#UI=txt/UI=txt/' ${WRKSRC}/config.mk |
33 |
|
34 |
post-patch-RIFLE-on: |
35 |
@${REINPLACE_CMD} -e 's/xdg-open/rifle/' ${WRKSRC}/config.def.h |
36 |
|
37 |
post-patch: |
38 |
@${REINPLACE_CMD} -e 's|SACCCFLAGS =.*|SACCCFLAGS = |' ${WRKSRC}/Makefile |
39 |
|
40 |
.include <bsd.port.mk> |