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

(-)misc/xpns/Makefile (-8 / +10 lines)
Lines 13-34 Link Here
13
13
14
MAINTAINER=	giffunip@asme.org
14
MAINTAINER=	giffunip@asme.org
15
15
16
USE_X_PREFIX=	yes
17
NO_WRKSUBDIR=	yes
16
NO_WRKSUBDIR=	yes
17
USE_X_PREFIX=	yes
18
MAKEFILE=	makefile
18
MAKEFILE=	makefile
19
ALL_TARGET=	pns
19
ALL_TARGET=	pns
20
20
21
post-patch:
22
	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xpns
23
21
do-install:
24
do-install:
22
	${MKDIR} ${PREFIX}/lib/xpns
23
	${INSTALL_PROGRAM} ${WRKSRC}/pns ${PREFIX}/lib/xpns/
24
	${INSTALL_DATA} ${WRKSRC}/pns.hlp ${PREFIX}/lib/xpns/
25
	${INSTALL_DATA} ${WRKSRC}/pns.shell ${PREFIX}/lib/xpns/
26
	${INSTALL_SCRIPT} ${WRKSRC}/xpns ${PREFIX}/bin/xpns
25
	${INSTALL_SCRIPT} ${WRKSRC}/xpns ${PREFIX}/bin/xpns
27
26
	${MKDIR} ${PREFIX}/libexec/xpns
28
post-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/pns ${PREFIX}/libexec/xpns
28
	${MKDIR} ${PREFIX}/share/xpns
29
	${INSTALL_DATA} ${WRKSRC}/pns.hlp ${PREFIX}/share/xpns
30
	${INSTALL_DATA} ${WRKSRC}/pns.shell ${PREFIX}/share/xpns
29
.if !defined(NOPORTDOCS)
31
.if !defined(NOPORTDOCS)
30
	${MKDIR} ${PREFIX}/share/doc/xpns
32
	${MKDIR} ${PREFIX}/share/doc/xpns
31
	${CP} ${WRKSRC}/*.net ${PREFIX}/share/doc/xpns/
33
	${INSTALL_DATA} ${WRKSRC}/*.net ${PREFIX}/share/doc/xpns
32
.endif
34
.endif
33
35
34
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)misc/xpns/patches/patch-aa (-6 / +5 lines)
Lines 1-5 Link Here
1
--- makefile.orig	Wed Jul 14 06:05:14 1993
1
--- makefile.orig	Wed Jul 14 20:05:14 1993
2
+++ makefile	Sun Oct  4 14:19:13 1998
2
+++ makefile	Fri Aug 11 02:02:40 2000
3
@@ -7,19 +7,21 @@
3
@@ -7,19 +7,21 @@
4
 #I 	= -I/usr/include
4
 #I 	= -I/usr/include
5
 
5
 
Lines 7-17 Link Here
7
-#  OPTIONEN SUN
7
-#  OPTIONEN SUN
8
+#  OPTIONEN FreeBSD
8
+#  OPTIONEN FreeBSD
9
 #------------------------------------------
9
 #------------------------------------------
10
-O	= -O
10
 O	= -O
11
-I 	= -I/usr/local/X11R5/include
11
-I 	= -I/usr/local/X11R5/include
12
-
12
-
13
-L 	= -L/usr/local/X11R5/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
13
-L 	= -L/usr/local/X11R5/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
14
+O	= -O2
15
+I 	= -I$(X11BASE)/include
14
+I 	= -I$(X11BASE)/include
16
 
15
 
17
+L 	= -L$(X11BASE)/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
16
+L 	= -L$(X11BASE)/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
Lines 24-31 Link Here
24
 #------------------------------------------
23
 #------------------------------------------
25
-B	= gcc-2.3.3 $O -o
24
-B	= gcc-2.3.3 $O -o
26
-CC	= gcc-2.3.3 $O $I
25
-CC	= gcc-2.3.3 $O $I
27
+B	= gcc $O -o
26
+B	= $(CC) -o
28
+CC	= gcc $O $I
27
+CC	+= $I
29
 
28
 
30
 #------------------------------------------
29
 #------------------------------------------
31
 #  FUNKTIONEN DIR
30
 #  FUNKTIONEN DIR
(-)misc/xpns/patches/patch-ab (-2 / +2 lines)
Lines 5-13 Link Here
5
-setenv XAPPLRESDIR $PWD/
5
-setenv XAPPLRESDIR $PWD/
6
-pns
6
-pns
7
+#!/bin/csh
7
+#!/bin/csh
8
+setenv XAPPLRESDIR /usr/X11R6/lib/xpns/
8
+setenv XAPPLRESDIR %%PREFIX%%/share/xpns/
9
+# Note pns will dump core if environment is not correct
9
+# Note pns will dump core if environment is not correct
10
+/usr/X11R6/lib/xpns/pns
10
+%%PREFIX%%/libexec/xpns/pns
11
 
11
 
12
 
12
 
13
 
13
 
(-)misc/xpns/pkg/PLIST (-4 / +5 lines)
Lines 1-7 Link Here
1
bin/xpns
1
bin/xpns
2
lib/xpns/pns
2
libexec/xpns/pns
3
lib/xpns/pns.hlp
3
share/xpns/pns.hlp
4
lib/xpns/pns.shell
4
share/xpns/pns.shell
5
share/doc/xpns/a.net
5
share/doc/xpns/a.net
6
share/doc/xpns/a1.net
6
share/doc/xpns/a1.net
7
share/doc/xpns/add.net
7
share/doc/xpns/add.net
Lines 10-14 Link Here
10
share/doc/xpns/rw.net
10
share/doc/xpns/rw.net
11
share/doc/xpns/sub.net
11
share/doc/xpns/sub.net
12
share/doc/xpns/sub2.net
12
share/doc/xpns/sub2.net
13
@dirrm lib/xpns
13
@dirrm share/xpns
14
@dirrm share/doc/xpns
14
@dirrm share/doc/xpns
15
@dirrm libexec/xpns

Return to bug 21581