void-packages/srcpkgs/berry/patches/fix-cross.patch

42 lines
1.2 KiB
Diff

--- config.mk.orig
+++ config.mk
@@ -9,11 +9,11 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = $(XBPS_CROSS_BASE)/usr/include
+X11LIB = $(XBPS_CROSS_BASE)/usr/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -21,7 +21,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = $(XBPS_CROSS_BASE)/usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
@@ -36,7 +36,7 @@
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} ${DEBUG_CPPFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS} $(NAME_DEFINES)
+CFLAGS += -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS} $(NAME_DEFINES)
LDFLAGS = ${LIBS}
# Solaris
@@ -44,4 +44,4 @@
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+#CC = cc