1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

- Unbreak parallel builds (-jX) by making automatic dependency generation

actually work (and be used)
- Trim Makefile header and remove an indefinite article from COMMENT line
- No need for a fancy, environment-aware "make clean" when all it does is
  it does is just "rm -rf nsfobj"
- Define LICENSE (GPLv2), adjust WWW: line in port description while here

Reported by:	marino
This commit is contained in:
Alexey Dokuchaev 2013-08-30 04:16:51 +00:00
parent a54d79fa38
commit a1c50f9316
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325660
3 changed files with 26 additions and 22 deletions

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: nosefart
# Date created: 11 October 2000
# Whom: sethk
#
# Created by: Seth Kingsley <sethk@osd.bsdi.com>
# $FreeBSD$
#
PORTNAME= nosefart
PORTVERSION= 1.92f
@ -13,15 +9,17 @@ MASTER_SITES= SF/${PORTNAME}/OldFiles
DISTNAME= ${PORTNAME}-${PORTVERSION}-mls
MAINTAINER= sethk@meowfishies.com
COMMENT= A player for NES Sound Format (NSF)
COMMENT= Player for NES Sound Format (NSF)
USE_GMAKE= yes
LICENSE= GPLv2
MAKE_ENV= INSTALL="${INSTALL}" COPY="${COPY}" STRIP="${STRIP}"\
USES= gmake
MAKE_ENV= INSTALL="${INSTALL}" COPY="${COPY}" STRIP="${STRIP}" \
BINGRP="${BINGRP}" BINMODE="${BINMODE}" BINOWN="${BINOWN}"
PLIST_FILES= bin/nosefart
pre-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean)
@${RM} -rf ${BUILD_WRKSRC}/nsfobj
.include <bsd.port.mk>
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
--- Makefile.orig Wed Sep 24 11:02:34 2003
+++ Makefile Wed Sep 24 19:43:19 2003
@@ -1,12 +1,6 @@
@@ -1,11 +1,10 @@
################################
# Configuration
@ -9,11 +9,14 @@
-LDFLAGS = -lm
-PREFIX = /usr/local
-WANT_DEBUG=TRUE
-
+CC ?= gcc
+CFLAGS ?=
+LDFLAGS ?= -lm
+PREFIX ?= /usr/local
# nothing below here should need to be changed
################################
@@ -21,19 +15,13 @@
@@ -21,19 +20,13 @@ SRCDIR = src
CFLAGS += -DNSF_PLAYER
@ -34,7 +37,7 @@
-I$(BUILDTOP)\
-I/usr/local/include/
@@ -59,9 +47,11 @@
@@ -59,6 +52,8 @@ SRCS = $(addsuffix .c, $(FILES) linux/ma
SOURCES = $(addprefix $(SRCDIR)/, $(SRCS))
OBJECTS = $(patsubst $(SRCDIR)/%.c,$(BUILDDIR)/%.o,$(SOURCES))
@ -42,12 +45,15 @@
+
ALL_OBJECTS = $(OBJECTS)
-ALL_TARGETS = $(BUILDTOP)/$(NAME)
+ALL_TARGETS = $(BUILDTOP)/config.h $(BUILDTOP)/$(NAME)
ALL_TARGETS = $(BUILDTOP)/$(NAME)
@@ -82,12 +77,13 @@ $(BUILDTOP)/config.h: $(BUILDDIR) Makefi
################################
# Rules
@@ -87,7 +77,7 @@
$(BUILDDIR)/dep: $(BUILDTOP)/config.h
$(CC) $(NSFINFO_CFLAGS) $(CFLAGS) -M $(SOURCES) > $@
+dep: $(BUILDDIR)/dep
--include $(BUILDDIR)/dep/
+-include $(BUILDDIR)/dep
install: all
mkdir -p $(PREFIX)/bin
@ -56,7 +62,7 @@
@echo "-----------------------------------------------"
@echo "Be sure to run chmod +s $(PREFIX)/bin/$(NAME) if you want ordinary users"
@echo "to be able to use /dev/dsp. SUID isn't necessary, though, if you want to"
@@ -105,7 +95,7 @@
@@ -105,7 +101,7 @@ clean:
# The real heavy lifting
$(BUILDTOP)/$(NAME): $(OBJECTS)

View File

@ -2,4 +2,4 @@ This is a port of Nosefart, a player for the NSF sound format, which
describes music taken from Nintendo Entertainment System game cartridges
in a compact form.
WWW: http://sourceforge.net/projects/nosefart
WWW: http://nosefart.sourceforge.net/