1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/sysutils/sortu/files/patch-Makefile
Jason Helfman bed5423182 - update to 2.1.2, honour CC/CFLAGS and add LICENSE [1]
- while here [2]
  - use optionsNG for portdocs
  - use portsdocs and plist files in favor of pkg-plist file
  - remove unnecessary inclusion of bsd.port.pre.mk in favor of bsd.port.options.mk

PR:	ports/169141
Submitted by:	koobs.freebsd@gmail.com [1], jgh@ [2]
Approved by:	maintainer, matt@peterson.org
2012-06-19 16:44:39 +00:00

23 lines
551 B
Plaintext

--- ./Makefile.orig 2012-06-16 16:54:07.000000000 +1000
+++ ./Makefile 2012-06-16 16:54:52.000000000 +1000
@@ -2,7 +2,7 @@
# $Id: Makefile,v 1.7 2011-11-15 18:55:19 gray Exp $
#
-CC = cc
+CC ?= cc
PROG = sortu
OBJS = sortu.o argv.o strsep.o table.o
@@ -10,8 +10,8 @@
PORTFLS = README.txt LICENSE.txt Makefile ChangeLog test_sortu.sh \
sortu.c strsep.[ch] argv.[ch] argv_loc.h table.[ch] table_loc.h
-CFLAGS = -g -Wall -O2 $(CCFLS)
-DESTDIR = /usr/local/sbin
+CFLAGS ?= -g -Wall -O2 $(CCFLS)
+DESTDIR ?= /usr/local/sbin
all : $(PROG)