1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/astro/wmsolar/files/patch-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

31 lines
785 B
Plaintext

--- Makefile.orig 2016-07-26 13:20:30 UTC
+++ Makefile
@@ -1,8 +1,6 @@
-CC = g++
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
+INCDIR = -I${LOCALBASE}/include
DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+LIBDIR = -L${LOCALBASE}/lib
# for linux
LIBS = -lXpm -lX11 -lXext -lm
# for Solaris
@@ -19,14 +17,14 @@ OBJS = wmSolar.o \
RiseSet.o \
Vsop.o
.c.o:
- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+ $(CXX) $(CXXFLAGS) -c $< -o $*.o $(INCDIR)
all: wmSolar.o wmSolar
wmSolar.o: wmSolar_master.xpm wmSolar_mask.xbm
wmSolar: $(OBJS)
- $(CC) $(CFLAGS) $(SYSTEM) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CXX) $(CXXFLAGS) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \