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

(-)graphics/vcg/Makefile (-9 / +17 lines)
Lines 1-6 Link Here
1
# New ports collection makefile for: vcg
1
# New ports collection makefile for:	vcg
2
# Date created: 19 February 1995
2
# Date created:		19 February 1995
3
# Whom: hsu
3
# Whom:			hsu
4
#
4
#
5
# $FreeBSD: ports/graphics/vcg/Makefile,v 1.11 2000/04/14 10:47:38 asami Exp $
5
# $FreeBSD: ports/graphics/vcg/Makefile,v 1.11 2000/04/14 10:47:38 asami Exp $
6
#
6
#
Lines 9-27 Link Here
9
PORTVERSION=	1.30
9
PORTVERSION=	1.30
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
11
MASTER_SITES=	ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
12
DISTNAME=	vcg.1.30
12
DISTNAME=	${PORTNAME}.${PORTVERSION}
13
DISTFILES=	vcg.1.30.r3.17.tgz
13
EXTRACT_SUFX=	.r3.17.tgz
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
16
17
BUILD_DEPENDS=	imake:${PORTSDIR}/devel/imake-4
18
17
USE_X_PREFIX=	yes
19
USE_X_PREFIX=	yes
18
MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
20
MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
19
21
20
pre-patch:
22
pre-patch:
21
	@${MKDIR} ${WRKSRC}/preconf/X11ccFreeBSD
23
	@${MKDIR} ${WRKSRC}/preconf/X11ccFreeBSD
22
	@${CP} ${FILESDIR}/conf ${WRKSRC}/preconf/X11ccFreeBSD
24
.for file in conf demo.csh globals.h tMakefile
23
	@${CP} ${FILESDIR}/demo.csh ${WRKSRC}/preconf/X11ccFreeBSD
25
	@${SED} -e "s:%%CC%%:${CC}:g" \
24
	@${CP} ${FILESDIR}/globals.h ${WRKSRC}/preconf/X11ccFreeBSD
26
	        -e "s:%%CFLAGS%%:${CFLAGS}:g" \
25
	@${CP} ${FILESDIR}/tMakefile ${WRKSRC}/preconf/X11ccFreeBSD
27
	        -e "s:%%MAKE%%:${MAKE}:g;" \
28
	        -e "s:%%PREFIX%%:${PREFIX}:g" \
29
	        -e "s:%%X11BASE%%:${X11BASE}:g" \
30
	        -e "s:%%INSTALL_PROGRAM%%:${INSTALL_PROGRAM}:g" \
31
	        -e "s:%%INSTALL_MAN%%:${INSTALL_MAN}:g" \
32
		< ${FILESDIR}/${file} > ${WRKSRC}/preconf/X11ccFreeBSD/${file}
33
.endfor
26
34
27
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)graphics/vcg/files/conf (-9 / +9 lines)
Lines 1-16 Link Here
1
ADDINCLUDEPATHNAME|-I/usr/X11R6/include/
1
ADDINCLUDEPATHNAME|-I%%X11BASE%%/include/
2
ADDLIBPATHNAME|-L/usr/X11R6/lib/
2
ADDLIBPATHNAME|-L%%X11BASE/lib/
3
ADDLIBSNAME|-lXext -lX11 -lm
3
ADDLIBSNAME|-lXext -lX11 -lm
4
ALIGNMENTNAME|8
4
ALIGNMENTNAME|8
5
ANSINAME|#undef ANSI_C
5
ANSINAME|#undef ANSI_C
6
BIGLTEXNAME|not_available
6
BIGLTEXNAME|not_available
7
BINPATHNAME|/usr/X11R6/bin
7
BINPATHNAME|%%PREFIX%%/bin
8
BISONNAME|not_available
8
BISONNAME|not_available
9
BLOCKSIZENAME|1048576
9
BLOCKSIZENAME|1048576
10
CATNAME|/bin/cat
10
CATNAME|/bin/cat
11
CCLINKNAME|cc
11
CCLINKNAME|%%CC%%
12
CCNAME|cc
12
CCNAME|%%CC%%
13
CFLAGSNAME|-c -O2 
13
CFLAGSNAME|-c %%CFLAGS%%
14
CLEARNAME|/usr/bin/clear
14
CLEARNAME|/usr/bin/clear
15
CLINKFLAGSNAME|-o
15
CLINKFLAGSNAME|-o
16
FGREPNAME|/usr/bin/fgrep
16
FGREPNAME|/usr/bin/fgrep
Lines 19-33 Link Here
19
FLEXNAME|not_needed
19
FLEXNAME|not_needed
20
FONTALIASNAME|-*-courier-*-*-*--14-*-*-*-*-*-*-*
20
FONTALIASNAME|-*-courier-*-*-*--14-*-*-*-*-*-*-*
21
INPUTFOCUSNAME|#define NOINPUTFOCUS
21
INPUTFOCUSNAME|#define NOINPUTFOCUS
22
INSTALLBINNAME|/bin/install -c -s -m 755 dummy $(BINDIR)/dummy
22
INSTALLBINNAME|%%INSTALL_PROGRAM%% dummy $(BINDIR)/dummy
23
INSTALLDIRNAME|/bin/mkdir -p
23
INSTALLDIRNAME|/bin/mkdir -p
24
INSTALLMANNAME|/bin/install -c -m 644 dummy $(MANDIR)/dummy
24
INSTALLMANNAME|%%INSTALL_MAN%% dummy $(MANDIR)/dummy
25
LATEXNAME|latex
25
LATEXNAME|latex
26
LNNAME|/bin/ln
26
LNNAME|/bin/ln
27
MAKEDEPENDNAME|makedepend
27
MAKEDEPENDNAME|makedepend
28
MAKENAME|make
28
MAKENAME|make
29
MANEXTNAME|l
29
MANEXTNAME|l
30
MANPATHNAME|/usr/X11R6/man/manl
30
MANPATHNAME|%%PREFIX%%/man/manl
31
MVNAME|/bin/mv
31
MVNAME|/bin/mv
32
RMNAME|/bin/rm
32
RMNAME|/bin/rm
33
SEDNAME|/usr/bin/sed
33
SEDNAME|/usr/bin/sed
(-)graphics/vcg/files/tMakefile (-10 / +10 lines)
Lines 38-49 Link Here
38
# where the binaries go
38
# where the binaries go
39
# BINDIR = /usr/local/bin/
39
# BINDIR = /usr/local/bin/
40
# BINDIR = /RW/esprit/users/sander/PUBLIC/CMD/
40
# BINDIR = /RW/esprit/users/sander/PUBLIC/CMD/
41
BINDIR = /usr/X11R6/bin
41
BINDIR = %%PREFIX%%/bin
42
42
43
# where the manual pages go
43
# where the manual pages go
44
# MANDIR = /usr/local/man/manl/
44
# MANDIR = /usr/local/man/manl/
45
# MANDIR = /RW/esprit/users/sander/PUBLIC/MAN/
45
# MANDIR = /RW/esprit/users/sander/PUBLIC/MAN/
46
MANDIR = /usr/X11R6/man/manl
46
MANDIR = %%PREFIX%%/man/manl
47
47
48
# what the manual extension is
48
# what the manual extension is
49
MANEXT = l
49
MANEXT = l
Lines 78-84 Link Here
78
#
78
#
79
# Do not use  -O -finline-functions for FreeBSD, or you really have a lot
79
# Do not use  -O -finline-functions for FreeBSD, or you really have a lot
80
# of swap for compiling drawstr.c.
80
# of swap for compiling drawstr.c.
81
CFLAGS = -c -O2 -pipe
81
CFLAGS = -c %%CFLAGS%%
82
82
83
# Flags for debugging
83
# Flags for debugging
84
DFLAGS =
84
DFLAGS =
Lines 104-110 Link Here
104
# then please use
104
# then please use
105
# INCLUDES = -I/usr/local/X11/include/
105
# INCLUDES = -I/usr/local/X11/include/
106
# INCLUDES = -I/RW/esprit/X11R5/include/
106
# INCLUDES = -I/RW/esprit/X11R5/include/
107
INCLUDES = -I/usr/X11R6/include/
107
INCLUDES = -I%%X11BASE%%/include/
108
108
109
# Library directories
109
# Library directories
110
# For Sunview, this should be enough, because on Suns, Sunview
110
# For Sunview, this should be enough, because on Suns, Sunview
Lines 117-123 Link Here
117
# then please use
117
# then please use
118
# LIBPATH = -L/usr/local/X11/lib/
118
# LIBPATH = -L/usr/local/X11/lib/
119
# LIBPATH = -L/RW/esprit/X11R5/lib/
119
# LIBPATH = -L/RW/esprit/X11R5/lib/
120
LIBPATH = -L/usr/X11R6/lib/
120
LIBPATH = -L%%X11BASE%%/lib/
121
121
122
# Libraries
122
# Libraries
123
# Libraries for SunView
123
# Libraries for SunView
Lines 131-141 Link Here
131
131
132
# C compiler
132
# C compiler
133
# CC = gcc -pipe
133
# CC = gcc -pipe
134
CC = cc
134
CC = %%CC%%
135
135
136
# C linker
136
# C linker
137
# CCLINK  = gcc -static
137
# CCLINK  = gcc -static
138
CCLINK = cc
138
CCLINK = %%CC%%
139
139
140
# If you use gcc and the sun driver, you need the normal sun
140
# If you use gcc and the sun driver, you need the normal sun
141
# preprocessor because of incompatibilities of the system libraries
141
# preprocessor because of incompatibilities of the system libraries
Lines 154-165 Link Here
154
# For binary files:
154
# For binary files:
155
# Assume that you want to install s file called dummy.
155
# Assume that you want to install s file called dummy.
156
# INSTALL = /bin/install -s -m 755 dummy $(BINDIR)/dummy
156
# INSTALL = /bin/install -s -m 755 dummy $(BINDIR)/dummy
157
INSTALL = /usr/bin/install -c -s -m 755 dummy $(BINDIR)/dummy
157
INSTALL = %%INSTALL_PROGRAM%% dummy $(BINDIR)/dummy
158
158
159
# For manual pages:
159
# For manual pages:
160
# Assume that you want to install s file called dummy.
160
# Assume that you want to install s file called dummy.
161
# INSTALLMAN = /bin/install -m 644 dummy $(MANDIR)/dummy
161
# INSTALLMAN = /bin/install -m 644 dummy $(MANDIR)/dummy
162
INSTALLMAN = /usr/bin/install -c -m 644 dummy $(MANDIR)/dummy
162
INSTALLMAN = %%INSTALL_MAN%% dummy $(MANDIR)/dummy
163
163
164
# To make the documentation
164
# To make the documentation
165
LATEX = latex
165
LATEX = latex
Lines 203-209 Link Here
203
203
204
# Make
204
# Make
205
# MAKE     = make
205
# MAKE     = make
206
MAKE = make
206
MAKE = %%MAKE%%
207
207
208
# MakeDepend (should understand the -f option)
208
# MakeDepend (should understand the -f option)
209
# DEPEND   = makedepend
209
# DEPEND   = makedepend

Return to bug 21579