1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Utilize USE_GETOPT_LONG

- Support install macros

PR:		51871
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2003-05-12 07:59:40 +00:00
parent e5d59d4fc1
commit 5219f2d83f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80793
2 changed files with 19 additions and 16 deletions

View File

@ -17,7 +17,8 @@ MASTER_SITE_SUBDIR= utils/disk-management
MAINTAINER= ports@FreeBSD.org
COMMENT= Create DVD master filesystems on DLT media
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_GETOPT_LONG= yes
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= dvdtape.1

View File

@ -1,26 +1,28 @@
--- Makefile.orig Wed Nov 10 00:01:10 1999
+++ Makefile Sun Jun 10 18:30:24 2001
@@ -1,8 +1,10 @@
--- Makefile.orig Wed Nov 10 09:01:10 1999
+++ Makefile Tue May 6 13:01:15 2003
@@ -1,8 +1,9 @@
-prefix=/usr
-BINDIR=${prefix}/bin
-MANDIR=${prefix}/man
-
+prefix=${PREFIX}
BINDIR=${prefix}/bin
MANDIR=${prefix}/man
-CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -Wall
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man
+CC ?=gcc
+CFLAGS+= -D_FILE_OFFSET_BITS=64 -I${LOCALBASE}/include
+LD =${CC}
+LDFLAGS=-L${LOCALBASE}/lib
+LIBS= -lgnugetopt
+CFLAGS+=${CPPFLAGS}
+LD=${CC}
PROGRAM=dvdtape
OBJECTS=dvdtape.o isosize.o
@@ -10,6 +12,7 @@
@@ -10,10 +11,11 @@
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
+ $(LD) $(LDFLAGS) -o ${PROGRAM} $(OBJECTS) $(LIBS)
install: all
install $(PROGRAM) $(BINDIR)
- install $(PROGRAM) $(BINDIR)
- install $(PROGRAM).1 $(MANDIR)/man1/
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(PROGRAM).1 $(MANDIR)/man1/
clean:
-rm -f $(PROGRAM) *.o *~