ports/64735: [New Port] devel/premake -- Writes build scripts

michael johnson ahze at ahze.net
Fri Mar 26 02:30:14 UTC 2004


>Number:         64735
>Category:       ports
>Synopsis:       [New Port] devel/premake -- Writes build scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 25 18:30:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        5.2-CURRENT && 4.9-STABLE
>Organization:
>Environment:
>Description:
New Port:
devel/premake Writes build scripts

this is requirement to things like wxgtk.NET and other programs.
>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel/premake/
#	devel/premake/pkg-descr
#	devel/premake/Makefile
#	devel/premake/distinfo
#	devel/premake/files
#	devel/premake/files/patch-Premake.make
#	devel/premake/files/patch-Src::posix.c
#
echo c - devel/premake/
mkdir -p devel/premake/ > /dev/null 2>&1
echo x - devel/premake/pkg-descr
sed 's/^X//' >devel/premake/pkg-descr << 'END-of-devel/premake/pkg-descr'
XDescribe your software project with a full-featured scripting language and let
XPremake write the build scripts for you. With one file your project can 
Xsupport both IDE-addicted Windows coders and Linux command-line junkies!
X
XWWW:	http://premake.sourceforge.net
END-of-devel/premake/pkg-descr
echo x - devel/premake/Makefile
sed 's/^X//' >devel/premake/Makefile << 'END-of-devel/premake/Makefile'
X# New ports collection makefile for:	premake
X# Date created:		2004-03-25
X# Whom:			michael johnson <ahze at ahze.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	premake
XPORTVERSION=	1.6.1
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	premake
XDISTNAME=	${PORTNAME}-src-${PORTVERSION}
X
XMAINTAINER=	ahze at ahze.net
XCOMMENT=	Writes build scripts
X
XUSE_ZIP=	yes
XWRKSRC=		${WRKDIR}/Premake-${PORTVERSION}
XUSE_GMAKE=	yes
XPLIST_FILES=	bin/premake
XUSE_REINPLACE=	yes
XMAKE_ENV=	CC="${CC}" CFLAGS="${CFLAGS}"
X
Xdo-install:
X	@${INSTALL} ${WRKSRC}/premake ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-devel/premake/Makefile
echo x - devel/premake/distinfo
sed 's/^X//' >devel/premake/distinfo << 'END-of-devel/premake/distinfo'
XMD5 (premake-src-1.6.1.zip) = 3833bcf3ecd49b8bf90a4a431e825a82
XSIZE (premake-src-1.6.1.zip) = 140011
END-of-devel/premake/distinfo
echo c - devel/premake/files
mkdir -p devel/premake/files > /dev/null 2>&1
echo x - devel/premake/files/patch-Premake.make
sed 's/^X//' >devel/premake/files/patch-Premake.make << 'END-of-devel/premake/files/patch-Premake.make'
X--- Premake.make.orig	Tue Feb 24 21:49:57 2004
X+++ Premake.make	Thu Mar 25 21:03:11 2004
X@@ -8,13 +8,13 @@
X TARGET =
X 
X ifeq ($(CONFIG),Debug)
X-  CFLAGS += --no-rtti --no-exceptions
X-  LDFLAGS += -ldl
X+  CFLAGS += --no-exceptions
X+  LDFLAGS +=
X   TARGET = premake
X endif
X ifeq ($(CONFIG),Release)
X-  CFLAGS += --no-rtti --no-exceptions -Os
X-  LDFLAGS += -ldl
X+  CFLAGS += --no-exceptions -Os
X+  LDFLAGS +=
X   TARGET = premake
X endif
X CXXFLAGS=$(CFLAGS)
X@@ -23,37 +23,21 @@
X 	- at if [ ! -d obj ]; then mkdir obj; fi
X 	@echo $(notdir $<)
X 	@$(CXX) $(CXXFLAGS) -MD -o $@ -c $<
X-	@cp obj/$*.d obj/$*.P; \
X-	 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
X-	 -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \
X-	rm -f obj/$*.d
X 
X obj/%.o : %.cpp
X 	- at if [ ! -d obj ]; then mkdir obj; fi
X 	@echo $(notdir $<)
X 	@$(CXX) $(CXXFLAGS) -MD -o $@ -c $<
X-	@cp obj/$*.d obj/$*.P; \
X-	 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
X-	 -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \
X-	rm -f obj/$*.d
X 
X obj/%.o : %.cxx
X 	- at if [ ! -d obj ]; then mkdir obj; fi
X 	@echo $(notdir $<)
X 	@$(CXX) $(CXXFLAGS) -MD -o $@ -c $<
X-	@cp obj/$*.d obj/$*.P; \
X-	 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
X-	 -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \
X-	rm -f obj/$*.d
X 
X obj/%.o : %.c
X 	- at if [ ! -d obj ]; then mkdir obj; fi
X 	@echo $(notdir $<)
X 	@$(CC) $(CFLAGS) -MD -o $@ -c $<
X-	@cp obj/$*.d obj/$*.P; \
X-	 sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
X-	 -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \
X-	rm -f obj/$*.d
X 
X OBJECTS = \
X 	obj/premake.o \
END-of-devel/premake/files/patch-Premake.make
echo x - devel/premake/files/patch-Src::posix.c
sed 's/^X//' >devel/premake/files/patch-Src::posix.c << 'END-of-devel/premake/files/patch-Src::posix.c'
X--- Src/posix.c.orig	Tue Feb 24 21:49:57 2004
X+++ Src/posix.c	Thu Mar 25 21:10:21 2004
X@@ -20,6 +20,9 @@
X 
X #if defined(__linux__)
X const char* osIdent = "linux";
X+#endif
X+#if defined(__FreeBSD__)
X+const char* osIdent = "linux";
X #else
X #error Unknown OS type.
X #endif
X@@ -87,31 +90,7 @@
X 		return 1;
X 	}
X 
X-	FILE* file = fopen("/etc/ld.so.conf", "rt");
X-	if (file == NULL) return 0;
X-
X-	while (!feof(file))
X-	{
X-		// Read a line and trim off any trailing whitespace
X-		char linebuffer[2048];
X-		char* ptr;
X-
X-		fgets(buffer, 2048, file);
X-		ptr = &buffer[strlen(buffer) - 1];
X-		while (isspace(*ptr))
X-			*(ptr--) = '\0';
X-
X-		if (findLib(lib, buffer))
X-		{
X-			fclose(file);
X-			return 1;
X-		}
X-	}
X-
X-	fclose(file);
X-	return 0;
X }
X-
X //-----------------------------------------------------------------------------
X 
X int plat_generateUUID(char* uuid)
END-of-devel/premake/files/patch-Src::posix.c
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list