1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

BUILD_DEPENDS -> LIB_DEPENDS

Support LOCALBASE/PREFIX properly
Support install macros

PR:		21618
Submitted by:	Ports Fury (no response from maintainer)
This commit is contained in:
Ade Lovett 2000-10-13 20:29:15 +00:00
parent b674230dce
commit 900f2caaac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33794
4 changed files with 84 additions and 40 deletions

View File

@ -1,20 +1,21 @@
# New ports collection makefile for: pwgen
# Date created: 22 July 2000
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
# New ports collection makefile for: pwgen
# Date created: 22 July 2000
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
#
# $FreeBSD$
#
PORTNAME= pwgen
PORTVERSION= 1.15
CATEGORIES= sysutils
MASTER_SITES= http://www.tricknology.org/ports/
PORTNAME= pwgen
PORTVERSION= 1.15
CATEGORIES= sysutils
MASTER_SITES= http://www.tricknology.org/ports/
MAINTAINER= oddbjorn@tricknology.org
MAINTAINER= oddbjorn@tricknology.org
BUILD_DEPENDS= ${LOCALBASE}/include/getopt.h:${PORTSDIR}/devel/libgnugetopt
LIB_DEPENDS= getopt.1:${PORTSDIR}/devel/libgnugetopt
MAN1= pwgen.1
WRKSRC= ${WRKDIR}/pwgen-1
WRKSRC= ${WRKDIR}/${PORTNAME}-1
MAN1= pwgen.1
.include <bsd.port.mk>

View File

@ -1,20 +1,41 @@
--- Makefile.orig Tue Jan 4 14:54:58 2000
+++ Makefile Sat Jul 22 18:29:32 2000
@@ -6,12 +6,12 @@
--- Makefile.orig Tue Jan 4 22:54:58 2000
+++ Makefile Sat Aug 12 00:49:23 2000
@@ -6,17 +6,18 @@
OPTS = -DALLBYOPTS -DRAND48 -DDEBIAN
# Standard items
-CC = gcc
-CFLAGS = -O3
+CC ?= gcc
+CFLAGS += -I/usr/local/include
LD = cc
-LD = cc
-#LDFLAGS = -g
-LIBS = -lm
-INSTALL = install -s
+LDFLAGS = -L/usr/local/lib
+CC ?= gcc
+CFLAGS += -I${LOCALBASE}/include
+LD = ${CC}
+LDFLAGS = -L${LOCALBASE}/lib
+LIBS = -lm -lgnugetopt
+INSTALL?= install -s
INSTALL = install -s
INFLAGS =
# Where to install
-DESTDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+PREFIX ?= /usr/local
+DESTDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
# End configuration section
@@ -27,10 +28,8 @@
./pwgen 8 20
install: all
- $(INSTALL) pwgen $(DESTDIR)
- install pwgen.1 $(MANDIR)
- chmod 555 $(DESTDIR)/pwgen
- chmod 444 $(MANDIR)/pwgen.1
+ ${BSD_INSTALL_PROGRAM} pwgen $(DESTDIR)
+ ${BSD_INSTALL_MAN} pwgen.1 $(MANDIR)
spwgen: spwgen.o
$(LD) $(LDFLAGS) -o spwgen spwgen.o $(LIBS)

View File

@ -1,20 +1,21 @@
# New ports collection makefile for: pwgen
# Date created: 22 July 2000
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
# New ports collection makefile for: pwgen
# Date created: 22 July 2000
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
#
# $FreeBSD$
#
PORTNAME= pwgen
PORTVERSION= 1.15
CATEGORIES= sysutils
MASTER_SITES= http://www.tricknology.org/ports/
PORTNAME= pwgen
PORTVERSION= 1.15
CATEGORIES= sysutils
MASTER_SITES= http://www.tricknology.org/ports/
MAINTAINER= oddbjorn@tricknology.org
MAINTAINER= oddbjorn@tricknology.org
BUILD_DEPENDS= ${LOCALBASE}/include/getopt.h:${PORTSDIR}/devel/libgnugetopt
LIB_DEPENDS= getopt.1:${PORTSDIR}/devel/libgnugetopt
MAN1= pwgen.1
WRKSRC= ${WRKDIR}/pwgen-1
WRKSRC= ${WRKDIR}/${PORTNAME}-1
MAN1= pwgen.1
.include <bsd.port.mk>

View File

@ -1,20 +1,41 @@
--- Makefile.orig Tue Jan 4 14:54:58 2000
+++ Makefile Sat Jul 22 18:29:32 2000
@@ -6,12 +6,12 @@
--- Makefile.orig Tue Jan 4 22:54:58 2000
+++ Makefile Sat Aug 12 00:49:23 2000
@@ -6,17 +6,18 @@
OPTS = -DALLBYOPTS -DRAND48 -DDEBIAN
# Standard items
-CC = gcc
-CFLAGS = -O3
+CC ?= gcc
+CFLAGS += -I/usr/local/include
LD = cc
-LD = cc
-#LDFLAGS = -g
-LIBS = -lm
-INSTALL = install -s
+LDFLAGS = -L/usr/local/lib
+CC ?= gcc
+CFLAGS += -I${LOCALBASE}/include
+LD = ${CC}
+LDFLAGS = -L${LOCALBASE}/lib
+LIBS = -lm -lgnugetopt
+INSTALL?= install -s
INSTALL = install -s
INFLAGS =
# Where to install
-DESTDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+PREFIX ?= /usr/local
+DESTDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
# End configuration section
@@ -27,10 +28,8 @@
./pwgen 8 20
install: all
- $(INSTALL) pwgen $(DESTDIR)
- install pwgen.1 $(MANDIR)
- chmod 555 $(DESTDIR)/pwgen
- chmod 444 $(MANDIR)/pwgen.1
+ ${BSD_INSTALL_PROGRAM} pwgen $(DESTDIR)
+ ${BSD_INSTALL_MAN} pwgen.1 $(MANDIR)
spwgen: spwgen.o
$(LD) $(LDFLAGS) -o spwgen spwgen.o $(LIBS)