Anton Afanasyev avatar Anton Afanasyev committed f72bf41

rearranged Makefile to confirm to guidelines

Comments (0)

Files changed (1)

 # $FreeBSD:$
 
 PORTNAME=		spidermonkey-185
-DISTVERSION=	1.8.5
-PORTVERSION=	${DISTVERSION}
+PORTVERSION=	1.8.5
 CATEGORIES=		lang
 
+
+DISTVERSION=	1.8.5
 JS_VERSION=		${DISTVERSION:S/.//g}
 MASTER_SITES=	${MASTER_SITE_MOZILLA}
 MASTER_SITE_SUBDIR=	js
 DISTNAME=		js${JS_VERSION}-1.0.0
+EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude js/jsd
+
 
 MAINTAINER=		aasoft@gmail.com
 COMMENT=		A standalone JavaScript interpreter from the Mozilla project, version 1.8.5
 
+
 BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
 LIB_DEPENDS=	nspr4.1:${PORTSDIR}/devel/nspr
 
+
 CONFLICTS=		njs-[0-9]*
 
+
 USE_AUTOTOOLS=	autoconf213:env libtool:env
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 USE_GMAKE=		yes
 
 
-CONFIGURE_ENV=	CC="${CC}"
-
-CONFIGURE_ARGS=		--with-nspr --with-system-nspr --with-pthreads
-
-.ifndef(WITHOUT_X11)
-CONFIGURE_ARGS+=	--with-x
-.else
-CONFIGURE_ARGS+=	--without-x
-.endif
-
-
 SRC_DIR=	js-${DISTVERSION}/js/src
 WRKSRC=		${WRKDIR}/${SRC_DIR}
 
+
 # we build in a separate directory, so must change config path, location, and build location
 CONFIGURE_SCRIPT=	../configure
 CONFIGURE_WRKSRC=	${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ
 BUILD_WRKSRC=		${CONFIGURE_WRKSRC}
 
+
+# port options
 OPTIONS_DEFINE=		TSAFE DEBUG TRACEJIT METHODJIT
 
 OPTIONS_SINGLE=		OPTIM
 .include <bsd.port.options.mk>
 
 
+CONFIGURE_ENV=	CC="${CC}"
+CONFIGURE_ARGS=		--with-nspr --with-system-nspr --with-pthreads
+
+.ifndef(WITHOUT_X11)
+CONFIGURE_ARGS+=	--with-x
+.else
+CONFIGURE_ARGS+=	--without-x
+.endif
+
+
 
 OPTIM_FLAG_=
 .if ${PORT_OPTIONS:MOPTIMIZE_DISABLE}
 				${JSH:S,^,include/js/,}
 PLIST_DIRS=		include/js
 
-EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude js/jsd
+
+
 
 post-patch: system-headers-fix make-target-extract
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.