Lines 6-55
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= rdesktop |
8 |
PORTNAME= rdesktop |
9 |
PORTVERSION= 1.0.0.p19.7.6 |
9 |
PORTVERSION= 1.2.0 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= net comms |
10 |
CATEGORIES= net comms |
12 |
MASTER_SITES= http://bibl4.oru.se/projects/rdesktop/dist/releases/ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
DISTNAME= rdesktop-1.0.0 |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
|
13 |
DISTNAME= rdesktop-1.2.0 |
15 |
PATCH_SITES= http://bibl4.oru.se/projects/rdesktop/ \ |
|
|
16 |
http://bibl4.oru.se/projects/rdesktop/patch19/ |
17 |
PATCHFILES= rdesktop-unified-patch19-7-6.bz2 |
18 |
PATCH_DIST_STRIP= -p2 |
19 |
|
14 |
|
20 |
MAINTAINER= chris@aims.com.au |
15 |
MAINTAINER= chris@aims.com.au |
21 |
|
16 |
|
22 |
USE_BZIP2= yes |
|
|
23 |
|
24 |
.include <bsd.port.pre.mk> |
25 |
|
26 |
.if ${OSVERSION} > 500023 |
27 |
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4 |
28 |
.endif |
29 |
|
30 |
USE_XLIB= yes |
17 |
USE_XLIB= yes |
31 |
USE_GMAKE= yes |
18 |
USE_GMAKE= yes |
32 |
USE_OPENSSL= yes |
19 |
USE_OPENSSL= yes |
33 |
USE_REINPLACE= yes |
20 |
HAS_CONFIGURE= yes |
34 |
ALL_TARGET= |
21 |
CONFIGURE_ARGS= --prefix=${PREFIX} |
|
|
22 |
|
35 |
MAN1= rdesktop.1 |
23 |
MAN1= rdesktop.1 |
36 |
|
24 |
|
37 |
do-patch: |
25 |
do-install: |
38 |
@${EXTRACT_CMD} -dc ${_DISTDIR}/${PATCHFILES} | \ |
26 |
@${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${PREFIX}/bin |
39 |
${PATCH} ${PATCH_DIST_ARGS} |
27 |
@${INSTALL_MAN} ${WRKSRC}/doc/rdesktop.1 ${PREFIX}/man/man1 |
40 |
.if ${OSVERSION} > 500023 |
28 |
@${INSTALL} -d -v -m 755 ${PREFIX}/share/rdesktop |
41 |
@${REINPLACE_CMD} -e 's:-O2.*-Wall:${CFLAGS} -I${LOCALBASE}/include:g' \ |
29 |
@${INSTALL} -d -v -m 755 ${PREFIX}/share/rdesktop/keymaps |
42 |
-e 's:-lgmp:-L${LOCALBASE}/lib -lgmp:g' \ |
30 |
@for f in ${WRKSRC}/keymaps/*; do \ |
43 |
${WRKSRC}/Makefile |
31 |
${INSTALL_DATA} $$f ${PREFIX}/share/rdesktop/keymaps; \ |
44 |
.else |
32 |
done |
45 |
@${REINPLACE_CMD} -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile |
|
|
46 |
.endif |
47 |
@${REINPLACE_CMD} -e 's:/usr/X11R6/:${X11BASE}/:g' \ |
48 |
-e 's:^PREFIX.*:PREFIX=${PREFIX}:g' \ |
49 |
-e 's:^install.*:install\: rdesktop:g' \ |
50 |
-e 's:^.*(INSTALL) rdp-srvr.*::g' \ |
51 |
${WRKSRC}/Makefile |
52 |
@${REINPLACE_CMD} -e 's:<endian.h>:<machine/endian.h>:g' \ |
53 |
${WRKSRC}/rdesktop.h |
54 |
|
33 |
|
55 |
.include <bsd.port.post.mk> |
34 |
.include <bsd.port.mk> |