1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Unbreak parallel builds (-jX): their makefile has a "bison" rule which

outputs two files and is triggered twice; use GNU make(1) with ordered
  prerequisites to avoid this race
- Revert r143367 (and drop MAKE_ARGS) since we now need a patch anyways
- While here, convert to OptionsNG, tighten COMMENT, sort the knobs, etc.
- Reformat port description

Reported by:	marino
This commit is contained in:
Alexey Dokuchaev 2013-08-30 03:37:22 +00:00
parent cdb56e88c7
commit 880b740272
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325658
3 changed files with 49 additions and 20 deletions

View File

@ -9,28 +9,33 @@ MASTER_SITES= http://www.pjrc.com/tech/8051/tools/
DISTNAME= ${PORTNAME}_beta3
MAINTAINER= ports@FreeBSD.org
COMMENT= A free 8051 assembler
.ifndef(WITHOUT_X11)
USE_GNOME= gtk12
PLIST_SUB+= X11=""
.else
ALL_TARGET= as31
PLIST_SUB+= X11="@comment "
.endif
USES= bison
COMMENT= Free 8051 assembler
# GNU make(1) allows parallel (-jX) builds to work: we plug a race in
# "bison" rule (which outputs multiple files) via order prerequisites
# (see files/patch-Makefile)
USES= bison gmake
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
MAN1= as31.1
PLIST_FILES= bin/as31 %%X11%%bin/as31_gtk
OPTIONS_DEFINE= X11
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_GNOME= gtk12
.else
ALL_TARGET= as31
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/as31 ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/as31.1 ${MANPREFIX}/man/man1
.ifndef(WITHOUT_X11)
@${INSTALL} ${WRKSRC}/as31_gtk ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/as31 ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/as31.1 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MX11}
${INSTALL_PROGRAM} ${WRKSRC}/as31_gtk ${PREFIX}/bin
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,24 @@
--- Makefile.orig Fri Nov 21 14:10:27 2003
+++ Makefile Fri Nov 21 14:10:55 2003
@@ -20,8 +20,8 @@
#Use this CFLAGS line with gcc on linux
-CFLAGS=-O3 -Wall
-CC=gcc
+CFLAGS?=-O3 -Wall
+CC?=gcc
#Use this CFLAGS line on solaris, etc
#CFLAGS=-O
@@ -44,8 +44,9 @@ as31_gtk: $(OBJ) as31_gtk.o
chmod a+rx as31
strip as31
-parser.c parser.h: parser.y
+parser.c: parser.y
bison -d -o parser.c parser.y
+parser.h: | parser.c
as31_gtk.o: as31_gtk.c as31.h
$(CC) $(CFLAGS) `gtk-config --cflags` -c as31_gtk.c

View File

@ -1,7 +1,7 @@
AS31 is a free 8051 assembler originally written by Ken Stauffer.
Versions of AS31 found here include important bug fixes and added
features, such as standard intel-hex output format for use with
PAULMON2 and EPROM programmers. AS31 is a good tool for building
small 8051-based projects that are written in 100% 8051 assembly language.
AS31 is a free 8051 assembler originally written by Ken Stauffer. Versions
of AS31 found here include important bug fixes and added features, such as
standard intel-hex output format for use with PAULMON2 and EPROM programmers.
AS31 is a good tool for building small 8051-based projects that are written
in 100% 8051 assembly language.
WWW: http://www.pjrc.com/tech/8051/