freebsd-ports/audio/id3ren/files/patch-src_Makefile
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

27 lines
701 B
Text

--- src/Makefile.orig 2012-05-15 20:31:03 UTC
+++ src/Makefile
@@ -1,9 +1,10 @@
CFLAGSDEBUG = -g -O2 -Wall -DDEBUG
-CFLAGS = -s -O2 -Wall
-CC = gcc
-RM = rm -f
-INSTALL = install -s -m 755
-INSTALL_DIR = /usr/bin
+CFLAGS ?= -O2 -Wall
+STRIP ?= -s
+CC ?= gcc
+RM ?= rm -f
+INSTALL = ${BSD_INSTALL_PROGRAM}
+INSTALL_DIR = ${PREFIX}/bin
INSTALL_NAME = id3ren
SOURCES = id3ren.c id3tag.c id3file.c id3misc.c
@@ -12,7 +13,7 @@ INCLUDES = id3ren.h id3tag.h id3file.h i
all: ${INSTALL_NAME}
${INSTALL_NAME}: ${SOURCES} ${INCLUDES}
- ${CC} ${CFLAGS} -o ${INSTALL_NAME} ${SOURCES}
+ ${CC} ${CFLAGS} ${STRIP} -o ${INSTALL_NAME} ${SOURCES}
debug:
${CC} ${CFLAGSDEBUG} -o ${INSTALL_NAME} ${SOURCES}