View | Details | Raw Unified | Return to bug 47715
Collapse All | Expand All

(-)Makefile (-37 / +16 lines)
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>
(-)distinfo (-2 / +1 lines)
Lines 1-2 Link Here
1
MD5 (rdesktop-1.0.0.tar.bz2) = 2f45a57016fe7ee7930848bbcb94f8b7
1
MD5 (rdesktop-1.2.0.tar.gz) = b5e108e83e9de883e965a2bb0c7e7036
2
MD5 (rdesktop-unified-patch19-7-6.bz2) = c20774a5e6c446f82ec199e8143775ce
(-)pkg-plist (+29 lines)
Line 1 Link Here
1
bin/rdesktop
1
bin/rdesktop
2
share/rdesktop/keymaps/ar
3
share/rdesktop/keymaps/fr-be
4
share/rdesktop/keymaps/en-us
5
share/rdesktop/keymaps/en-gb
6
share/rdesktop/keymaps/tr
7
share/rdesktop/keymaps/th
8
share/rdesktop/keymaps/sv
9
share/rdesktop/keymaps/sl
10
share/rdesktop/keymaps/ru
11
share/rdesktop/keymaps/pt
12
share/rdesktop/keymaps/pl
13
share/rdesktop/keymaps/no
14
share/rdesktop/keymaps/mk
15
share/rdesktop/keymaps/lv
16
share/rdesktop/keymaps/lt
17
share/rdesktop/keymaps/ja
18
share/rdesktop/keymaps/it
19
share/rdesktop/keymaps/hr
20
share/rdesktop/keymaps/fr
21
share/rdesktop/keymaps/fi
22
share/rdesktop/keymaps/es
23
share/rdesktop/keymaps/de
24
share/rdesktop/keymaps/da
25
share/rdesktop/keymaps/pt-br
26
share/rdesktop/keymaps/common
27
share/rdesktop/keymaps/convert-map
28
share/rdesktop/keymaps/modifiers
29
@unexec rmdir %D/share/rdesktop/keymaps 2>/dev/null || true
30
@unexec rmdir %D/share/rdesktop 2>/dev/null || true
(-)files/patch-Makefile (+35 lines)
Added Link Here
1
--- Makefile.orig	Thu Jan 30 21:54:23 2003
2
+++ Makefile	Fri Jan 31 18:22:58 2003
3
@@ -20,6 +20,8 @@
4
 include Makeconf  # configure-generated
5
 
6
 
7
+all: rdesktop
8
+
9
 rdesktop: $(RDPOBJ) $(CRYPTOBJ)
10
 	$(CC) $(CFLAGS) -o rdesktop $(RDPOBJ) $(CRYPTOBJ) $(LDFLAGS)
11
 
12
@@ -29,23 +31,10 @@
13
 install: installbin installkeymaps installman
14
 
15
 installbin: rdesktop
16
-	mkdir -p $(DESTDIR)/$(bindir)
17
-	install rdesktop $(DESTDIR)/$(bindir)
18
-	strip $(DESTDIR)/$(bindir)/rdesktop
19
-	chmod 755 $(DESTDIR)/$(bindir)/rdesktop
20
 
21
 installman: doc/rdesktop.1
22
-	mkdir -p $(DESTDIR)/$(mandir)/man1
23
-	cp doc/rdesktop.1 $(DESTDIR)/$(mandir)/man1
24
-	chmod 644 $(DESTDIR)/$(mandir)/man1/rdesktop.1
25
 
26
 installkeymaps:
27
-	mkdir -p $(DESTDIR)/$(KEYMAP_PATH)
28
-# Prevent copying the CVS directory
29
-	cp keymaps/?? keymaps/??-?? $(DESTDIR)/$(KEYMAP_PATH)
30
-	cp keymaps/common $(DESTDIR)/$(KEYMAP_PATH)
31
-	cp keymaps/modifiers $(DESTDIR)/$(KEYMAP_PATH)
32
-	chmod 644 $(DESTDIR)/$(KEYMAP_PATH)/*
33
 
34
 proto:
35
 	cproto -DMAKE_PROTO -o proto.h *.c
(-)files/patch-configure (+23 lines)
Added Link Here
1
--- configure.orig	Thu Jan 30 21:54:48 2003
2
+++ configure	Fri Jan 31 18:43:58 2003
3
@@ -98,7 +98,7 @@
4
 echo "CC          = $cc" >>Makeconf
5
 
6
 if $cc -v 2>&1 |grep '^gcc' >/dev/null; then
7
-    cflags="$cflags -Wall -O2"
8
+    #cflags="$cflags -Wall -O2"
9
 else
10
     cflags="$cflags -O"
11
 fi
12
@@ -220,8 +220,9 @@
13
 esac
14
 
15
 
16
-echo "CFLAGS      = $cflags" >>Makeconf
17
-echo "LDFLAGS     = $ldflags" >>Makeconf
18
+echo "CFLAGS     += $cflags" >>Makeconf
19
+echo "LDFLAGS    += $ldflags" >>Makeconf
20
+echo 'DESTDIR     = ${prefix}' >>Makeconf
21
 
22
 echo "configure complete - now run make"
23

Return to bug 47715