Index: head/devel/libCello/Makefile =================================================================== --- head/devel/libCello/Makefile (revision 390630) +++ head/devel/libCello/Makefile (revision 390631) @@ -1,20 +1,24 @@ # Created by: matthew.closson@gmail.com # $FreeBSD$ PORTNAME= libCello PORTVERSION= 1.1.7 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://libcello.org/static/ MAINTAINER= matthew.closson@gmail.com COMMENT= Higher level programming in C LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= dos2unix gmake +USES= dos2unix execinfo gmake DOS2UNIX_FILES= Makefile + +CFLAGS+= ${EXECINFO_CPPFLAGS} post-patch: ${REINPLACE_CMD} -E 's| abs\(| labs\(|' ${WRKSRC}/src/*.c .include Index: head/devel/libCello/files/patch-Makefile =================================================================== --- head/devel/libCello/files/patch-Makefile (revision 390630) +++ head/devel/libCello/files/patch-Makefile (revision 390631) @@ -1,13 +1,24 @@ ---- Makefile.orig 2015-03-10 20:42:37 UTC +--- Makefile.orig 2015-06-25 22:20:28 UTC +++ Makefile +@@ -18,8 +18,8 @@ DEMOS := $(wildcard demos/*.c) + DEMOS_OBJ := $(addprefix obj/,$(notdir $(DEMOS:.c=.o))) + DEMOS_EXE := $(DEMOS:.c=) + +-CFLAGS = -I ./include -std=gnu99 -Wall -Werror -Wno-unused -O3 -g +-LFLAGS = -shared -g -ggdb ++CFLAGS += -I ./include -std=gnu99 -Wall -Werror -Wno-unused ++LFLAGS = ${LDFLAGS} -shared + + PLATFORM := $(shell uname) + COMPILER := $(shell $(CC) -v 2>&1 ) @@ -42,8 +42,8 @@ else CFLAGS += -fPIC - INSTALL_LIB = mkdir -p ${LIBDIR} && cp -f ${STATIC} ${LIBDIR}/$(STATIC) - INSTALL_INC = mkdir -p ${INCDIR} && cp -r include/* ${INCDIR} + INSTALL_LIB = mkdir -p ${DESTDIR}${LIBDIR} && cp -f ${STATIC} ${DESTDIR}${LIBDIR}/$(STATIC) + INSTALL_INC = mkdir -p ${DESTDIR}${INCDIR} && cp -r include/* ${DESTDIR}${INCDIR} endif ifeq ($(findstring clang,$(COMPILER)),clang)