--- Makefile.orig 2010-03-26 23:28:34 UTC +++ Makefile @@ -1,20 +1,21 @@ -all: id3v2 +all: clean id3v2 VERSION=0.1.12 -PREFIX= /opt/local -CXXFLAGS+= -Wall -I${PREFIX}/include/ -DVERSION="\"${VERSION}\"" #-DSORT_RUNTIME -LDFLAGS+= -L${PREFIX}/lib/ +#PREFIX= /opt/local +CXXFLAGS+= -I${LOCALBASE}/include -DVERSION="\"${VERSION}\"" #-DSORT_RUNTIME +LDFLAGS+= -L${LOCALBASE}/lib +MAKEOBJDIR= ${.CURDIR} # ignore objwarn: in id3v2: convert.o list.o id3v2.o genre.o - ${CXX} ${LDFLAGS} -pedantic -Wall -g -o $@ $^ -lz -lid3 + ${CXX} ${LDFLAGS} -lz -lid3 -o $@ $> create_map: create_map.o ${CXX} -Wall -g -o $@ $^ -install: all - install -c -s id3v2 ${PREFIX}/bin/id3v2 - nroff -man id3v2.1 > ${PREFIX}/share/man/man1/id3v2.1 +install: + ${BSD_INSTALL_PROGRAM} id3v2 ${DESTDIR}${PREFIX}/bin + ${BSD_INSTALL_MAN} id3v2.1 ${DESTDIR}${PREFIX}/share/man/man1 clean: rm -f id3v2 create_map core *.o @@ -25,4 +26,5 @@ tarball: --exclude=id3v2-${VERSION}/id3v2-${VERSION} \ id3v2-${VERSION} rm id3v2-${VERSION} - + +.include