mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
This project contains no C++ code so use CC not CXX as the linker. Use MacPorts CFLAGS, CPPFLAGS, LDFLAGS. Fixes universal variant among other things. Closes: https://trac.macports.org/ticket/62285 Also modernize checksums and update homepage.
29 lines
786 B
Diff
29 lines
786 B
Diff
--- src/Makefile.in.orig 2003-03-24 02:48:21.000000000 -0600
|
|
+++ src/Makefile.in 2021-02-14 02:22:01.000000000 -0600
|
|
@@ -2,12 +2,14 @@
|
|
# source make file
|
|
#
|
|
|
|
+prefix=@prefix@
|
|
CC=@CC@
|
|
DEBUG=@DEBUG@
|
|
INCLUDE=-I../include -I.
|
|
LIBS=@LIBS@
|
|
-CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3
|
|
-LFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -o
|
|
+CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 @CFLAGS@
|
|
+CPPFLAGS=@CPPFLAGS@
|
|
+LDFLAGS=@LDFLAGS@
|
|
OBJS=DomComment.o DomDocument.o DomElement.o DomNode.o DomNodeList.o DomText.o SgmlExtensionHtml.o SgmlExtensionXml.o SgmlParser.o Variant.o
|
|
LIBNAME=../libsgml.a
|
|
LIBEXEC=ar rc ${LIBNAME} ${OBJS} ${LIBS} && ranlib ${LIBNAME}
|
|
@@ -18,7 +20,7 @@
|
|
${LIBBIN}
|
|
|
|
*.c.${O}:
|
|
- ${CC} ${CFLAGS} $*.c
|
|
+ ${CC} ${CFLAGS} ${CPPFLAGS} $*.c
|
|
|
|
clean:
|
|
rm -f *.o core ${LIBNAME} ../libsgml.so
|